public function Blocks::removeBlock in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()
- 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()
Remove block.
Parameters
string $blockId: Block id to removed.
Return value
Drupal\context\Plugin\ContextReaction This object.
File
- src/
Plugin/ ContextReaction/ Blocks.php, line 500
Class
- Blocks
- Provides a content reaction.
Namespace
Drupal\context\Plugin\ContextReactionCode
public function removeBlock($blockId) {
$this
->getBlocks()
->removeInstanceId($blockId);
return $this;
}