protected function ConditionalFieldEditForm::fieldSupportsInheritance in Conditional Fields 8
Same name and namespace in other branches
- 4.x 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 589
Class
- ConditionalFieldEditForm
- Class ConditionalFieldEditForm.
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);
}