You are here

protected function BlockVisibilityGroupedListBuilder::groupsExist in Block Visibility Groups 8

Determine if any groups exist.

Return value

bool TRUE if any groups exist.

1 call to BlockVisibilityGroupedListBuilder::groupsExist()
BlockVisibilityGroupedListBuilder::buildForm in src/BlockVisibilityGroupedListBuilder.php
Form constructor.

File

src/BlockVisibilityGroupedListBuilder.php, line 329

Class

BlockVisibilityGroupedListBuilder
Extends BlockListBuilder to add our elements only show certain blocks.

Namespace

Drupal\block_visibility_groups

Code

protected function groupsExist() {
  return !empty($this->group_storage
    ->loadMultiple());
}