next-drupal
next-drupal copied to clipboard
The getResource parameters in the bundling pages documentation are incorrect.
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.