You are here

public function ConditionCreatorBase::itemSelected in Block Visibility Groups 8

Determine if a condition was selected in the form.

Parameters

$condition_info:

Return value

bool TRUE if the condition was selected in a form.

Overrides ConditionCreatorInterface::itemSelected

2 methods override ConditionCreatorBase::itemSelected()
NodeTypeConditionCreator::itemSelected in block_visibility_groups_admin/src/Plugin/ConditionCreator/NodeTypeConditionCreator.php
Determine if a condition was selected in the form.
RolesConditionCreator::itemSelected in block_visibility_groups_admin/src/Plugin/ConditionCreator/RolesConditionCreator.php
Determine if a condition was selected in the form.

File

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

Class

ConditionCreatorBase

Namespace

Drupal\block_visibility_groups_admin\Plugin

Code

public function itemSelected($condition_info) {
  return !empty($condition_info['selected']);
}