You are here

protected function DependencyHelper::resolveBundleDependencies in Conditional Fields 8

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

Resolve a bundle's dependencies.

2 calls to DependencyHelper::resolveBundleDependencies()
DependencyHelper::getBundleDependencies in src/DependencyHelper.php
Return dependencies for a given bundle.
DependencyHelper::resolveFieldDependencies in src/DependencyHelper.php
Resolve a field's dependencies.

File

src/DependencyHelper.php, line 89

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function resolveBundleDependencies($dependent_fields) {
  foreach ($dependent_fields as $dependent => $field) {
    $this->dependent = $dependent;
    $this->dependent_field = $field;
    $this
      ->resolveFieldDependencies();
  }
}