LocaleSettingsForm::buildForm

public LocaleSettingsForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfigFormBase::buildForm File core/modules/locale/src/Form/LocaleSettingsForm.php, line 30 Class LocaleSettingsForm Configure locale settings for this site. Namespace Drupal\l

DefaultExceptionSubscriber::onHtml

protected DefaultExceptionSubscriber::onHtml(GetResponseForExceptionEvent $event) Handles any exception as a generic error page for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 68 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected function onHtml(GetResponseForExceptionEv

DeleteForm::$aliasStorage

The alias storage service. Type: AliasStorageInterface $path File core/modules/path/src/Form/DeleteForm.php, line 21 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code protected $aliasStorage;

contact.module

Enables the use of personal and site-wide contact forms. File core/modules/contact/contact.module Functions Name Description contact_entity_extra_field_info Implements hook_entity_extra_field_info(). contact_entity_type_alter Implements hook_entity_type_alter(). contact_form_user_admin_settings_alter Implements hook_form_FORM_ID_alter(). contact_form_user_admin_settings_submit Form submission handler for user_admin_settings(). contact_form_user_form_alter Implements ho

JsOptimizer::optimize

public JsOptimizer::optimize(array $js_asset) Optimizes an asset. Parameters array $asset: An asset. Return value string The optimized asset's contents. Overrides AssetOptimizerInterface::optimize File core/lib/Drupal/Core/Asset/JsOptimizer.php, line 15 Class JsOptimizer Optimizes a JavaScript asset. Namespace Drupal\Core\Asset Code public function optimize(array $js_asset) { if ($js_asset['type'] !== 'file') { throw new \Exception('Only file JavaScript assets can be optimized.

Select::getExpressions

public &Select::getExpressions() Returns a reference to the expressions array for this query. Because this method returns by reference, alter hooks may edit the expressions array directly to make their changes. If just adding expressions, however, the use of addExpression() is preferred. Note that this method must be called by reference as well: $fields =& $query->getExpressions(); Return value A reference to the expression array structure. Overrides SelectInterface::getExpressions

FieldUninstallValidator::__construct

public FieldUninstallValidator::__construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation, FieldTypePluginManagerInterface $field_type_manager) Constructs a new FieldUninstallValidator. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager. \Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service. \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_

SystemMenuOffCanvasForm::validateConfigurationForm

public SystemMenuOffCanvasForm::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormBase::validateCon

install_finish_translations

install_finish_translations(&$install_state) Finishes importing files at end of installation. If other projects besides Drupal core have been installed, their translation will be imported here. Parameters $install_state: An array of information about the current installation state. Return value array An array of batch definitions. File core/includes/install.core.inc, line 1715 API functions for installing Drupal. Code function install_finish_translations(&$install_state) { \Drupal

RouteSubscriber::$manager

The entity type manager Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/field_ui/src/Routing/RouteSubscriber.php, line 21 Class RouteSubscriber Subscriber for Field UI routes. Namespace Drupal\field_ui\Routing Code protected $manager;