You are here

public function RestResourceConfig::getPluginCollections in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getPluginCollections()
  2. 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\Entity

Code

public function getPluginCollections() {
  return [
    'resource' => new DefaultSingleLazyPluginCollection($this
      ->getResourcePluginManager(), $this->plugin_id, []),
  ];
}