You are here

protected function DependencyHelper::hasConditionalFields in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::hasConditionalFields()

Determine whether a field has any conditional fields defined.

1 call to DependencyHelper::hasConditionalFields()
DependencyHelper::registerBundleDependentFields in src/DependencyHelper.php
Register all dependent fields attached to a bundle.

File

src/DependencyHelper.php, line 333

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function hasConditionalFields($field) {
  return !empty($field['third_party_settings']['conditional_fields']);
}