You are here

EntityWithPluginCollectionInterface.php in Zircon Profile 8

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/EntityWithPluginCollectionInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Entity\EntityWithPluginCollectionInterface.
 */
namespace Drupal\Core\Entity;


/**
 * Provides an interface for an object using a plugin collection.
 *
 * @see \Drupal\Component\Plugin\LazyPluginCollection
 *
 * @ingroup plugin_api
 */
interface EntityWithPluginCollectionInterface extends EntityInterface {

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

}

Interfaces

Namesort descending Description
EntityWithPluginCollectionInterface Provides an interface for an object using a plugin collection.