public function Block::getVisibility in Drupal 8
Same name and namespace in other branches
- 9 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::getVisibility()
Returns an array of visibility condition configurations.
Return value
array An array of visibility condition configuration keyed by the condition ID.
Overrides BlockInterface::getVisibility
File
- core/
modules/ block/ src/ Entity/ Block.php, line 261
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\EntityCode
public function getVisibility() {
return $this
->getVisibilityConditions()
->getConfiguration();
}