public function Block::getVisibilityCondition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::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.
Overrides BlockInterface::getVisibilityCondition
File
- core/
modules/ block/ src/ Entity/ Block.php, line 288 - Contains \Drupal\block\Entity\Block.
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\EntityCode
public function getVisibilityCondition($instance_id) {
return $this
->getVisibilityConditions()
->get($instance_id);
}