You are here

public function Block::getPluginCollections in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::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 EntityWithPluginCollectionInterface::getPluginCollections

File

core/modules/block/src/Entity/Block.php, line 159
Contains \Drupal\block\Entity\Block.

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

public function getPluginCollections() {
  return [
    'settings' => $this
      ->getPluginCollection(),
    'visibility' => $this
      ->getVisibilityConditions(),
  ];
}