protected function DependencyHelper::registerBundleDependentFields in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::registerBundleDependentFields()
Register all dependent fields attached to a bundle.
1 call to DependencyHelper::registerBundleDependentFields()
- DependencyHelper::getBundleDependentFields in src/
DependencyHelper.php - Return all dependent fields attached to a bundle.
File
- src/
DependencyHelper.php, line 291
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
protected function registerBundleDependentFields() {
$this->dependent_fields[$this->entity_type][$this->bundle] = [];
foreach ($this
->getBundleFormFields() as $name => $field) {
if (!$this
->hasConditionalFields($field)) {
continue;
}
$this->dependent_fields[$this->entity_type][$this->bundle][$name] = $field;
}
}