You are here

public function Context::getPluginCollections in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::getPluginCollections()
  2. 8 src/Entity/Context.php \Drupal\context\Entity\Context::getPluginCollections()

Gets the plugin collections used by this entity.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/Context.php, line 353

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

public function getPluginCollections() {
  return [
    'reactions' => $this
      ->getReactions(),
    'conditions' => $this
      ->getConditions(),
  ];
}