public function RestResourceConfig::getPluginCollections in Drupal 10
Same name and namespace in other branches
- 8 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getPluginCollections()
- 9 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
1 call to RestResourceConfig::getPluginCollections()
- RestResourceConfig::getResourcePlugin in core/
modules/ rest/ src/ Entity/ RestResourceConfig.php - Retrieves the REST resource plugin.
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, []),
];
}