public 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 251
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\Entity
Code
public function getVisibility() { return $this->getVisibilityConditions()->getConfiguration(); }
Please login to continue.