public function DependencyHelper::fieldHasChildren in Conditional Fields 8
Same name and namespace in other branches
- 4.x 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 82
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
public function fieldHasChildren($field) {
return (bool) count($this
->getInheritingFieldNames($field));
}