You are here

interface ObjectWithPluginCollectionInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Plugin/ObjectWithPluginCollectionInterface.php \Drupal\Core\Plugin\ObjectWithPluginCollectionInterface

Provides an interface for an object using a plugin collection.

Entities that need this interface should implement \Drupal\Core\Entity\EntityWithPluginCollectionInterface, which extends this.

Hierarchy

Expanded class hierarchy of ObjectWithPluginCollectionInterface

All classes that implement ObjectWithPluginCollectionInterface

See also

\Drupal\Component\Plugin\LazyPluginCollection

Related topics

1 file declares its use of ObjectWithPluginCollectionInterface
EntityWithPluginCollectionInterface.php in core/lib/Drupal/Core/Entity/EntityWithPluginCollectionInterface.php

File

core/lib/Drupal/Core/Plugin/ObjectWithPluginCollectionInterface.php, line 15

Namespace

Drupal\Core\Plugin
View source
interface ObjectWithPluginCollectionInterface {

  /**
   * Gets the plugin collections used by this object.
   *
   * @return \Drupal\Component\Plugin\LazyPluginCollection[]
   *   An array of plugin collections, keyed by the property name they use to
   *   store their configuration.
   */
  public function getPluginCollections();

}

Members

Namesort descending Modifiers Type Description Overrides
ObjectWithPluginCollectionInterface::getPluginCollections public function Gets the plugin collections used by this object. 11