protected function DependencyHelper::getBundleFormField in Conditional Fields 8
Same name and namespace in other branches
- 4.x src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::getBundleFormField()
Return a field attached to a bundle.
1 call to DependencyHelper::getBundleFormField()
- DependencyHelper::getInheritingFields in src/
DependencyHelper.php - Return fields with conditional settings to inherit.
File
- src/
DependencyHelper.php, line 246
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
protected function getBundleFormField($field_name) {
if (!isset($this->form_fields)) {
$this->form_fields = $this
->getBundleFormFields();
}
if (!isset($this->form_fields[$field_name])) {
return [];
}
return $this->form_fields[$field_name];
}