You are here

public function ConditionCreatorBase::createConditionConfig in Block Visibility Groups 8

Create condition configuration from form submission.

Parameters

array $plugin_info: The plugin implementation definition.

Return value

array The condition config.

Overrides ConditionCreatorInterface::createConditionConfig

2 calls to ConditionCreatorBase::createConditionConfig()
NodeTypeConditionCreator::createConditionConfig in block_visibility_groups_admin/src/Plugin/ConditionCreator/NodeTypeConditionCreator.php
Create condition configuration from form submission.
RolesConditionCreator::createConditionConfig in block_visibility_groups_admin/src/Plugin/ConditionCreator/RolesConditionCreator.php
Create condition configuration from form submission.
2 methods override ConditionCreatorBase::createConditionConfig()
NodeTypeConditionCreator::createConditionConfig in block_visibility_groups_admin/src/Plugin/ConditionCreator/NodeTypeConditionCreator.php
Create condition configuration from form submission.
RolesConditionCreator::createConditionConfig in block_visibility_groups_admin/src/Plugin/ConditionCreator/RolesConditionCreator.php
Create condition configuration from form submission.

File

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

Class

ConditionCreatorBase

Namespace

Drupal\block_visibility_groups_admin\Plugin

Code

public function createConditionConfig($plugin_info) {
  $config = $plugin_info['condition_config'];
  $config['id'] = isset($config['id']) ? $config['id'] : $this
    ->getPluginDefinition()['condition_plugin'];
  $config['negate'] = isset($config['negate']) ? $config['negate'] : 0;
  return $config;
}