Block::getVisibilityCondition

public Block::getVisibilityCondition($instance_id)

Gets a visibility condition plugin instance.

Parameters

string $instance_id: The condition plugin instance ID.

Return value

\Drupal\Core\Condition\ConditionInterface A condition plugin.

Overrides BlockInterface::getVisibilityCondition

File

core/modules/block/src/Entity/Block.php, line 283

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

public function getVisibilityCondition($instance_id) {
  return $this->getVisibilityConditions()->get($instance_id);
}
doc_Drupal
2016-10-29 08:46:29
Comments
Leave a Comment

Please login to continue.