You are here

protected function DependencyHelper::registerDependent in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x 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 196

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function registerDependent() {
  $this->dependencies[$this->entity_type][$this->bundle]['dependents'][$this->dependent][$this->uuid] = [
    'dependee' => $this->dependee,
    'options' => $this->settings,
  ];
}