X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FEntity%2FRestResourceConfig.php;fp=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FEntity%2FRestResourceConfig.php;h=c0a4e5c04c7c538d2cd15e088a4b75c77a309dac;hp=12bd846ea6a6a136b552195ad3d42fc0be855b9d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/rest/src/Entity/RestResourceConfig.php b/web/core/modules/rest/src/Entity/RestResourceConfig.php index 12bd846ea..c0a4e5c04 100644 --- a/web/core/modules/rest/src/Entity/RestResourceConfig.php +++ b/web/core/modules/rest/src/Entity/RestResourceConfig.php @@ -13,6 +13,13 @@ use Drupal\rest\RestResourceConfigInterface; * @ConfigEntityType( * id = "rest_resource_config", * label = @Translation("REST resource configuration"), + * label_collection = @Translation("REST resource configurations"), + * label_singular = @Translation("REST resource configuration"), + * label_plural = @Translation("REST resource configurations"), + * label_count = @PluralTranslation( + * singular = "@count REST resource configuration", + * plural = "@count REST resource configurations", + * ), * config_prefix = "resource", * admin_permission = "administer rest resources", * label_callback = "getLabelFromPlugin", @@ -203,7 +210,7 @@ class RestResourceConfig extends ConfigEntityBase implements RestResourceConfigI */ public function getPluginCollections() { return [ - 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, []) + 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, []), ]; }