diff --git a/core/modules/rest/lib/Drupal/rest/Annotation/RestResource.php b/core/modules/rest/lib/Drupal/rest/Annotation/RestResource.php new file mode 100644 index 0000000000000000000000000000000000000000..c9ac9e910e7961f2d7f1d2e3a493b66fe1c5bab2 --- /dev/null +++ b/core/modules/rest/lib/Drupal/rest/Annotation/RestResource.php @@ -0,0 +1,35 @@ +setCacheBackend($cache_backend, $language_manager, 'rest_plugins'); $this->alterInfo($module_handler, 'rest_resource'); diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/DBLogResource.php b/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/DBLogResource.php index bd05a5aae573953460c33f625e65d72d5864e924..57aaf8184d9acc8a9e760b88139c4aedd7644c29 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/DBLogResource.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/DBLogResource.php @@ -15,7 +15,7 @@ /** * Provides a resource for database watchdog log entries. * - * @Plugin( + * @RestResource( * id = "dblog", * label = @Translation("Watchdog database log") * ) diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php b/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php index 53281e19e5d3367d794b377380c494414eb8518a..6cbb2823c53071cb30fc094b5328dfd2a65f7259 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php @@ -19,7 +19,7 @@ /** * Represents entities as resources. * - * @Plugin( + * @RestResource( * id = "entity", * label = @Translation("Entity"), * serialization_class = "Drupal\Core\Entity\Entity",