public function RestResourceConfig::getResourcePlugin in Drupal 8
Same name and namespace in other branches
- 9 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getResourcePlugin()
Retrieves the REST resource plugin.
Return value
\Drupal\rest\Plugin\ResourceInterface The resource plugin
Overrides RestResourceConfigInterface::getResourcePlugin
File
- core/
modules/ rest/ src/ Entity/ RestResourceConfig.php, line 117
Class
- RestResourceConfig
- Defines a RestResourceConfig configuration entity class.
Namespace
Drupal\rest\EntityCode
public function getResourcePlugin() {
return $this
->getPluginCollections()['resource']
->get($this->plugin_id);
}