private function Blocks::blockShouldBePlacedUniquely in Context 8
Same name and namespace in other branches
- 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::blockShouldBePlacedUniquely()
- 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::blockShouldBePlacedUniquely()
Check to see if the block should be uniquely placed.
Parameters
BlockPluginInterface $block:
Return value
bool
2 calls to Blocks::blockShouldBePlacedUniquely()
- Blocks::buildConfigurationForm in src/
Plugin/ ContextReaction/ Blocks.php - Form constructor.
- Blocks::execute in src/
Plugin/ ContextReaction/ Blocks.php - Executes the plugin.
File
- src/
Plugin/ ContextReaction/ Blocks.php, line 627
Class
- Blocks
- Provides a content reaction that will let you place blocks in the current themes regions.
Namespace
Drupal\context\Plugin\ContextReactionCode
private function blockShouldBePlacedUniquely(BlockPluginInterface $block) {
$configuration = $block
->getConfiguration();
return isset($configuration['unique']) && $configuration['unique'];
}