You are here

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

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

Determine all fields that support inheritence, and their children.

1 call to DependencyHelper::getInheritingChildren()
DependencyHelper::getInheritingFieldNames in src/DependencyHelper.php
Return a list of fields to inherit conditional settings.

File

src/DependencyHelper.php, line 228

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

protected function getInheritingChildren() {
  $hook = 'conditional_fields_children';
  $inheriting_fields = $this->module_handler
    ->invokeAll($hook, [
    $this->entity_type,
    $this->bundle,
  ]);
  $this->module_handler
    ->alter($hook, $inheriting_fields, $this->entity_type, $this->bundle);
  return $inheriting_fields;
}