protected function BlockVisibilityGroupedListBuilder::getShowGlobalWithGroup in Block Visibility Groups 8
Determine if global(unset) blocks should be shown when viewing a group.
Return value
mixed
3 calls to BlockVisibilityGroupedListBuilder::getShowGlobalWithGroup()
- BlockVisibilityGroupedListBuilder::buildBlocksForm in src/
BlockVisibilityGroupedListBuilder.php - Builds the main "Blocks" portion of the form.
- BlockVisibilityGroupedListBuilder::buildForm in src/
BlockVisibilityGroupedListBuilder.php - Form constructor.
- BlockVisibilityGroupedListBuilder::getEntityIds in src/
BlockVisibilityGroupedListBuilder.php - Unset blocks that should not be shown with current group.
File
- src/
BlockVisibilityGroupedListBuilder.php, line 394
Class
- BlockVisibilityGroupedListBuilder
- Extends BlockListBuilder to add our elements only show certain blocks.
Namespace
Drupal\block_visibility_groupsCode
protected function getShowGlobalWithGroup() {
return $this->state
->get('block_visibility_group_show_global', 1);
}