You are here

public function RestResourceConfig::getPluginCollections in Drupal 8

Same name and namespace in other branches
  1. 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

File

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

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, []),
  ];
}