function RestResourceConfig::getResourcePlugin

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

Overrides RestResourceConfigInterface::getResourcePlugin

File

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

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

public function getResourcePlugin() {
    return $this->getPluginCollections()['resource']
        ->get($this->plugin_id);
}

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