You are here

public function DependencyHelper::getAvailableConditionalFields in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::getAvailableConditionalFields()

Return a list of names of available fields.

File

src/DependencyHelper.php, line 60

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

public function getAvailableConditionalFields() {
  $hook = 'conditional_fields';
  $fields = $this->module_handler
    ->invokeAll($hook, [
    $this->entity_type,
    $this->bundle,
  ]);
  $this->module_handler
    ->alter($hook, $fields, $this->entity_type, $this->bundle);
  return $fields;
}