You are here

protected function DependencyHelper::bundleHasRegisteredDependentFields in Conditional Fields 4.x

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

Determine whether a bundle has registered any dependent fields.

1 call to DependencyHelper::bundleHasRegisteredDependentFields()
DependencyHelper::getBundleDependentFields in src/DependencyHelper.php
Return all dependent fields attached to a bundle.

File

src/DependencyHelper.php, line 278

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function bundleHasRegisteredDependentFields() {
  if (!isset($this->dependent_fields[$this->entity_type][$this->bundle])) {
    return FALSE;
  }
  if (empty($this->dependent_fields[$this->entity_type][$this->bundle])) {
    return FALSE;
  }
  return TRUE;
}