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); }
Please login to continue.