You are here

public function Blocks::removeBlock in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()
  2. 8 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::removeBlock()

Parameters

$blockId:

Return value

$this

File

src/Plugin/ContextReaction/Blocks.php, line 355

Class

Blocks
Provides a content reaction that will let you place blocks in the current themes regions.

Namespace

Drupal\context\Plugin\ContextReaction

Code

public function removeBlock($blockId) {
  $this
    ->getBlocks()
    ->removeInstanceId($blockId);
  return $this;
}