public function Blocks::removeBlock in Context 8
Same name and namespace in other branches
- 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()
- 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()
Parameters
$blockId:
Return value
$this
File
- src/
Plugin/ ContextReaction/ Blocks.php, line 398
Class
- Blocks
- Provides a content reaction that will let you place blocks in the current themes regions.
Namespace
Drupal\context\Plugin\ContextReactionCode
public function removeBlock($blockId) {
$this
->getBlocks()
->removeInstanceId($blockId);
return $this;
}