You are here

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

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

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

1 call to DependencyHelper::fieldDependencyShouldRecurse()
DependencyHelper::getInheritingFields in src/DependencyHelper.php
Return fields with conditional settings to inherit.

File

src/DependencyHelper.php, line 183

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

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