Block::getVisibility

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();
}
doc_Drupal
2016-10-29 08:46:29
Comments
Leave a Comment

Please login to continue.