You are here

protected function FormState::moduleLoadInclude in Drupal 10

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

Wraps ModuleHandler::loadInclude().

File

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

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);
}