core/modules/rest/src/Entity/RestResourceConfig.php | 13 +++---------- core/modules/rest/src/RestResourceConfigInterface.php | 7 ------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php index d586f29..362c061 100644 --- a/core/modules/rest/src/Entity/RestResourceConfig.php +++ b/core/modules/rest/src/Entity/RestResourceConfig.php @@ -80,7 +80,7 @@ public function __construct(array $values, $entity_type) { */ protected function getLabelFromPlugin() { $plugin_definition = $this->getResourcePluginManager() - ->getDefinition(['id' => $this->getResourcePluginID()]); + ->getDefinition(['id' => $this->plugin_id]); return $plugin_definition['label']; } @@ -99,15 +99,8 @@ protected function getResourcePluginManager() { /** * {@inheritdoc} */ - public function getResourcePluginID() { - return $this->plugin_id; - } - - /** - * {@inheritdoc} - */ public function getResourcePlugin() { - return $this->getPluginCollections()['resource']->get($this->getResourcePluginID()); + return $this->getPluginCollections()['resource']->get($this->plugin_id); } /** @@ -211,7 +204,7 @@ public function removeSupportedFormat($method, $format) { */ public function getPluginCollections() { return [ - 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->getResourcePluginID(), []) + 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, []) ]; } diff --git a/core/modules/rest/src/RestResourceConfigInterface.php b/core/modules/rest/src/RestResourceConfigInterface.php index 422bec8..296a1e6 100644 --- a/core/modules/rest/src/RestResourceConfigInterface.php +++ b/core/modules/rest/src/RestResourceConfigInterface.php @@ -11,13 +11,6 @@ interface RestResourceConfigInterface extends ConfigEntityInterface, EntityWithPluginCollectionInterface { /** - * Retrieves the REST resource plugin id. - * - * @return string The plugin id - */ - public function getResourcePluginID(); - - /** * Retrieves the REST resource plugin. * * @return \Drupal\rest\Plugin\ResourceInterface