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
Namespace
Drupal\block_visibility_groups_admin\PluginCode
public function itemSelected($condition_info) {
return !empty($condition_info['selected']);
}