You are here

protected function FormState::moduleLoadInclude in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 1317
Contains \Drupal\Core\Form\FormState.

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