You are here

protected function FormState::moduleLoadInclude in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::moduleLoadInclude()

Wraps ModuleHandler::loadInclude().

1 call to FormState::moduleLoadInclude()
FormState::loadInclude in core/lib/Drupal/Core/Form/FormState.php
Ensures an include file is loaded whenever the form is processed.

File

core/lib/Drupal/Core/Form/FormState.php, line 1257

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected function moduleLoadInclude($module, $type, $name = NULL) {
  return \Drupal::moduleHandler()
    ->loadInclude($module, $type, $name);
}