You are here

protected function DependencyHelper::registerDependee in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::registerDependee()

Add a dependee field to the list of dependencies.

1 call to DependencyHelper::registerDependee()
DependencyHelper::registerFieldDependency in src/DependencyHelper.php
Register a specific conditional field dependency.

File

src/DependencyHelper.php, line 206

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

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