protected function ConditionalFieldEditForm::fieldSupportsInheritance in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/Form/ConditionalFieldEditForm.php \Drupal\conditional_fields\Form\ConditionalFieldEditForm::fieldSupportsInheritance()
Determine whether a field supports inheritance.
1 call to ConditionalFieldEditForm::fieldSupportsInheritance()
- ConditionalFieldEditForm::buildForm in src/
Form/ ConditionalFieldEditForm.php - Form constructor.
File
- src/
Form/ ConditionalFieldEditForm.php, line 626
Class
- ConditionalFieldEditForm
- An edit form for conditional fields.
Namespace
Drupal\conditional_fields\FormCode
protected function fieldSupportsInheritance($entity_type, $bundle, $field_name) {
$dependency_helper = new DependencyHelper($entity_type, $bundle);
return $dependency_helper
->fieldHasChildren($field_name);
}