function BlockInterface::getVisibilityCondition

Same name in other branches
  1. 9 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getVisibilityCondition()
  2. 8.9.x core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getVisibilityCondition()
  3. 10 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getVisibilityCondition()

Gets a visibility condition plugin instance.

Parameters

string $instance_id: The condition plugin instance ID.

Return value

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

1 method overrides BlockInterface::getVisibilityCondition()
Block::getVisibilityCondition in core/modules/block/src/Entity/Block.php

File

core/modules/block/src/BlockInterface.php, line 69

Class

BlockInterface
Provides an interface defining a block entity.

Namespace

Drupal\block

Code

public function getVisibilityCondition($instance_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.