function BlockInterface::setVisibilityConfig
Same name in other branches
- 9 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::setVisibilityConfig()
- 10 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::setVisibilityConfig()
- 11.x core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::setVisibilityConfig()
Sets the visibility condition configuration.
Parameters
string $instance_id: The condition instance ID.
array $configuration: The condition configuration.
Return value
$this
1 method overrides BlockInterface::setVisibilityConfig()
- Block::setVisibilityConfig in core/
modules/ block/ src/ Entity/ Block.php - Sets the visibility condition configuration.
File
-
core/
modules/ block/ src/ BlockInterface.php, line 99
Class
- BlockInterface
- Provides an interface defining a block entity.
Namespace
Drupal\blockCode
public function setVisibilityConfig($instance_id, array $configuration);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.