function RestResourceConfig::getResourcePluginManager

Same name and namespace in other branches
  1. 9 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getResourcePluginManager()
  2. 10 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getResourcePluginManager()
  3. 11.x core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getResourcePluginManager()

Returns the resource plugin manager.

Return value

\Drupal\Component\Plugin\PluginManagerInterface

1 call to RestResourceConfig::getResourcePluginManager()
RestResourceConfig::getPluginCollections in core/modules/rest/src/Entity/RestResourceConfig.php

File

core/modules/rest/src/Entity/RestResourceConfig.php, line 107

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

protected function getResourcePluginManager() {
    if (!isset($this->pluginManager)) {
        $this->pluginManager = \Drupal::service('plugin.manager.rest');
    }
    return $this->pluginManager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.