Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ObjectWithPluginCollectionInterface.php

interface 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

  • interface \Drupal\Core\Plugin\ObjectWithPluginCollectionInterface

Expanded class hierarchy of ObjectWithPluginCollectionInterface

All classes that implement ObjectWithPluginCollectionInterface

See also

\Drupal\Component\Plugin\LazyPluginCollection

Related topics

Plugin API
Using the Plugin API
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

Title Sort descending Modifiers Object type Summary
ObjectWithPluginCollectionInterface::getPluginCollections public function Gets the plugin collections used by this object.
RSS feed
Powered by Drupal