You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.