public function RestResourceConfig::getPluginCollections in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getPluginCollections()
Gets the plugin collections used by this object.
Return value
\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.
Overrides ObjectWithPluginCollectionInterface::getPluginCollections
File
- core/
modules/ rest/ src/ Entity/ RestResourceConfig.php, line 205
Class
- RestResourceConfig
- Defines a RestResourceConfig configuration entity class.
Namespace
Drupal\rest\EntityCode
public function getPluginCollections() {
return [
'resource' => new DefaultSingleLazyPluginCollection($this
->getResourcePluginManager(), $this->plugin_id, []),
];
}