You are here

public function DependencyHelper::getBundleDependencies in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::getBundleDependencies()

Return dependencies for a given bundle.

File

src/DependencyHelper.php, line 116

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

public function getBundleDependencies() {
  if (!isset($this->dependencies[$this->entity_type][$this->bundle])) {
    $this
      ->resolveBundleDependencies($this
      ->getBundleDependentFields());
  }
  return $this->dependencies ? $this->dependencies[$this->entity_type][$this->bundle] : NULL;
}