You are here

protected function DependencyHelper::hasConditionalFields in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x 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 273

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

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