You are here

public function ConditionCreatorBase::createConditionElements in Block Visibility Groups 8

Create condition elements for form.

Return value

array

Overrides ConditionCreatorInterface::createConditionElements

1 call to ConditionCreatorBase::createConditionElements()
RouteConditionCreator::createConditionElements in block_visibility_groups_admin/src/Plugin/ConditionCreator/RouteConditionCreator.php
Create condition elements for form.
3 methods override ConditionCreatorBase::createConditionElements()
NodeTypeConditionCreator::createConditionElements in block_visibility_groups_admin/src/Plugin/ConditionCreator/NodeTypeConditionCreator.php
Create condition elements for form.
RolesConditionCreator::createConditionElements in block_visibility_groups_admin/src/Plugin/ConditionCreator/RolesConditionCreator.php
Create condition elements for form.
RouteConditionCreator::createConditionElements in block_visibility_groups_admin/src/Plugin/ConditionCreator/RouteConditionCreator.php
Create condition elements for form.

File

block_visibility_groups_admin/src/Plugin/ConditionCreatorBase.php, line 50

Class

ConditionCreatorBase

Namespace

Drupal\block_visibility_groups_admin\Plugin

Code

public function createConditionElements() {
  $elements = [
    '#tree' => TRUE,
    '#type' => 'fieldset',
    '#title' => $this
      ->getPluginDefinition()['label'],
    'selected' => [
      '#type' => 'checkbox',
      '#title' => $this
        ->getNewConditionLabel(),
    ],
  ];
  return $elements;
}