public function DependencyHelper::fieldHasChildren in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::fieldHasChildren()
Determine whether a field contains other fields.
1 call to DependencyHelper::fieldHasChildren()
- DependencyHelper::getInheritingFields in src/
DependencyHelper.php - Return fields with conditional settings to inherit.
File
- src/
DependencyHelper.php, line 126
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
public function fieldHasChildren($field) {
return (bool) count($this
->getInheritingFieldNames($field));
}