diff options
author | Dave Long <dave@longwaveconsulting.com> | 2024-02-02 12:04:21 +0000 |
---|---|---|
committer | Dave Long <dave@longwaveconsulting.com> | 2024-02-02 12:04:21 +0000 |
commit | 451be835c097b66cb6b9523ed74b3e0ce04b0ec2 (patch) | |
tree | 149a3d69f6f9c5156441c7010d094d3bef7b8474 /core/modules/rest/rest.api.php | |
parent | 2624df1b1c316517308451897068473bfea4d917 (diff) | |
download | drupal-451be835c097b66cb6b9523ed74b3e0ce04b0ec2.tar.gz drupal-451be835c097b66cb6b9523ed74b3e0ce04b0ec2.zip |
Issue #3417675 by quietone, arunkumark: Correct mymodule, mydriver and anothermodule
Diffstat (limited to 'core/modules/rest/rest.api.php')
-rw-r--r-- | core/modules/rest/rest.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/rest/rest.api.php b/core/modules/rest/rest.api.php index 2f3f6ee2c0d..d5d1b429f12 100644 --- a/core/modules/rest/rest.api.php +++ b/core/modules/rest/rest.api.php @@ -20,9 +20,9 @@ function hook_rest_resource_alter(&$definitions) { if (isset($definitions['entity:node'])) { // We want to handle REST requests regarding nodes with our own plugin // class. - $definitions['entity:node']['class'] = 'Drupal\mymodule\Plugin\rest\resource\NodeResource'; + $definitions['entity:node']['class'] = 'Drupal\my_module\Plugin\rest\resource\NodeResource'; // Serialized nodes should be expanded to my specific node class. - $definitions['entity:node']['serialization_class'] = 'Drupal\mymodule\Entity\MyNode'; + $definitions['entity:node']['serialization_class'] = 'Drupal\my_module\Entity\MyNode'; } // We don't want Views to show up in the array of plugins at all. unset($definitions['entity:view']); |