public function Blocks::getBlock in Context 8
Same name and namespace in other branches
- 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::getBlock()
- 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::getBlock()
Get a block by id.
Parameters
string $blockId: The ID of the block to get.
Return value
1 call to Blocks::getBlock()
- Blocks::submitConfigurationForm in src/
Plugin/ ContextReaction/ Blocks.php - Form submission handler.
File
- src/
Plugin/ ContextReaction/ Blocks.php, line 358
Class
- Blocks
- Provides a content reaction that will let you place blocks in the current themes regions.
Namespace
Drupal\context\Plugin\ContextReactionCode
public function getBlock($blockId) {
return $this
->getBlocks()
->get($blockId);
}