3 namespace Drupal\Core\Plugin;
6 * Provides an interface for an object using a plugin collection.
8 * @see \Drupal\Component\Plugin\LazyPluginCollection
12 * Entities that need this interface should implement
13 * \Drupal\Core\Entity\EntityWithPluginCollectionInterface, which extends this.
15 interface ObjectWithPluginCollectionInterface {
18 * Gets the plugin collections used by this object.
20 * @return \Drupal\Component\Plugin\LazyPluginCollection[]
21 * An array of plugin collections, keyed by the property name they use to
22 * store their configuration.
24 public function getPluginCollections();