protected function DependencyHelper::bundleHasRegisteredDependentFields in Conditional Fields 8
Same name and namespace in other branches
- 4.x 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 226
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
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;
}