public function Block::getPluginCollections in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::getPluginCollections()
- 9 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::getPluginCollections()
Gets the plugin collections used by this object.
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
- core/
modules/ block/ src/ Entity/ Block.php, line 164
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\EntityCode
public function getPluginCollections() {
return [
'settings' => $this
->getPluginCollection(),
'visibility' => $this
->getVisibilityConditions(),
];
}