ObjectWithPluginCollectionInterface.php 670 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\Core\Plugin;
  3. /**
  4. * Provides an interface for an object using a plugin collection.
  5. *
  6. * @see \Drupal\Component\Plugin\LazyPluginCollection
  7. *
  8. * @ingroup plugin_api
  9. *
  10. * Entities that need this interface should implement
  11. * \Drupal\Core\Entity\EntityWithPluginCollectionInterface, which extends this.
  12. */
  13. interface ObjectWithPluginCollectionInterface {
  14. /**
  15. * Gets the plugin collections used by this object.
  16. *
  17. * @return \Drupal\Component\Plugin\LazyPluginCollection[]
  18. * An array of plugin collections, keyed by the property name they use to
  19. * store their configuration.
  20. */
  21. public function getPluginCollections();
  22. }