public function DependencyHelper::getAvailableConditionalFields in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::getAvailableConditionalFields()
Return a list of names of available fields.
File
- src/
DependencyHelper.php, line 104
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
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;
}