function FormState::moduleLoadInclude

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::moduleLoadInclude()
  2. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::moduleLoadInclude()
  3. 11.x 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 1253

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.