You are here

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

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

Determine whether a field dependency should be apply to the parent field.

1 call to DependencyHelper::fieldDependencyShouldApplyToParent()
DependencyHelper::resolveFieldDependencies in src/DependencyHelper.php
Resolve a field's dependencies.

File

src/DependencyHelper.php, line 173

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function fieldDependencyShouldApplyToParent() {
  if (!isset($this->settings['inheritance']['apply_to_parent'])) {
    return FALSE;
  }
  return (bool) $this->settings['inheritance']['apply_to_parent'];
}