You are here

public function Block::getVisibility in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 256
Contains \Drupal\block\Entity\Block.

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

public function getVisibility() {
  return $this
    ->getVisibilityConditions()
    ->getConfiguration();
}