You are here

public function RouteConditionCreator::createConditionElements in Block Visibility Groups 8

Create condition elements for form.

Return value

array

Overrides ConditionCreatorBase::createConditionElements

File

block_visibility_groups_admin/src/Plugin/ConditionCreator/RouteConditionCreator.php, line 42

Class

RouteConditionCreator
Defines the form in-place editor.

Namespace

Drupal\block_visibility_groups_admin\Plugin\ConditionCreator

Code

public function createConditionElements() {
  $elements = parent::createConditionElements();
  $elements['condition_config'] = [
    '#type' => 'value',
    '#value' => [
      'pages' => $this
        ->getPathPattern(),
    ],
  ];
  return $elements;
}