protected function DependencyHelper::resolveFieldDependencies in Conditional Fields 8
Same name and namespace in other branches
- 4.x src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::resolveFieldDependencies()
Resolve a field's dependencies.
1 call to DependencyHelper::resolveFieldDependencies()
- DependencyHelper::resolveBundleDependencies in src/
DependencyHelper.php - Resolve a bundle's dependencies.
File
- src/
DependencyHelper.php, line 100
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
protected function resolveFieldDependencies() {
foreach ($this->dependent_field['third_party_settings']['conditional_fields'] as $uuid => $conditional_field) {
$this->uuid = $uuid;
$this->dependee = $conditional_field['dependee'];
$this->settings = $conditional_field['settings'];
if ($this
->fieldDependencyShouldPropagate()) {
if ($this
->fieldDependencyShouldApplyToParent()) {
$this
->registerFieldDependency();
}
$this
->resolveBundleDependencies($this
->getInheritingFields());
continue;
}
$this
->registerFieldDependency();
}
}