protected function DependencyHelper::registerDependent in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::registerDependent()
Add a dependent field to the list of dependencies.
1 call to DependencyHelper::registerDependent()
- DependencyHelper::registerFieldDependency in src/
DependencyHelper.php - Register a specific conditional field dependency.
File
- src/
DependencyHelper.php, line 248
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
protected function registerDependent() {
$this->dependencies[$this->entity_type][$this->bundle]['dependents'][$this->dependent][$this->uuid] = [
'dependee' => $this->dependee,
'options' => $this->settings,
];
}