Skip to content

The getResource parameters in the bundling pages documentation are incorrect. #841

Open
@borja-sanz-sanz

Description

@borja-sanz-sanz

Package containing the bug

Building pages documentation

Describe the bug

In the building pages documentation, the drupal.getResource function is called with the result of drupal.translatePath as its first parameter. However, this is incorrect because drupal.getResource requires the entity type as its first argument.

Expected behavior

The drupal.getResource function should be called using the entity type as the first parameter.

Steps to reproduce:

When calling the drupal.getResource function using the response from drupal.translatePath as stated in the documentation, an error occurs because drupal.getResource expects a string as its first parameter.

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageA new issue that needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions