RegisterForm::save

public RegisterForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the operatio

hook_install

hook_install() Perform setup tasks when the module is installed. If the module implements hook_schema(), the database tables will be created before this hook is fired. If the module provides a MODULE.routing.yml or alters routing information these changes will not be available when this hook is fired. If up-to-date router information is required, for example to use \Drupal\Core\Url, then (preferably) use hook_modules_installed() or rebuild the router in the hook_install() implementation. Implem

ConfigDependencyDeleteFormTrait::addDependencyListsToForm

protected ConfigDependencyDeleteFormTrait::addDependencyListsToForm(array &$form, $type, array $names, ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager) Adds form elements to list affected configuration entities. Parameters array $form: The form array to add elements to. string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'. array $names: The specific names to check. If $type equals 'module' or 'theme' then it shou

FormBuilder

Provides form building and processing. Hierarchy class \Drupal\Core\Form\FormBuilder implements FormBuilderInterface, FormCacheInterface, FormSubmitterInterface, FormValidatorInterface Related topics Form generation Describes how to generate and manipulate forms and process form submissions. File core/lib/Drupal/Core/Form/FormBuilder.php, line 28 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormBuilder::$classResolver protected property The class

SystemBrandingOffCanvasForm::buildConfigurationForm

public SystemBrandingOffCanvasForm::buildConfigurationForm(array $form, FormStateInterface $form_state) Form constructor. Plugin forms are embedded in other forms. In order to know where the plugin form is located in the parent form, #parents and #array_parents must be known, but these are not available during the initial build phase. In order to have these properties available when building the plugin form's elements, let this method return a form element that has a #process callback and build

Connection::commit

public Connection::commit() Throws an exception to deny direct access to transaction commits. We do not want to allow users to commit transactions at any time, only by destroying the transaction object or allowing it to go out of scope. A direct commit bypasses all of the safety checks we've built on top of PDO's transaction routines. Throws \Drupal\Core\Database\TransactionExplicitCommitNotAllowedException See also \Drupal\Core\Database\Transaction File core/lib/Drupal/Core/Database/Connecti

JS_THEME

The default group for theme JavaScript code added to the page. File core/includes/common.inc, line 124 Common functions that many Drupal modules will need to reference. Code const JS_THEME = 100;

FieldStorageDefinitionInterface

Defines an interface for entity field storage definitions. Field storage definitions represent the part of full field definitions (see FieldDefinitionInterface) that is responsible for defining how the field is stored. While field definitions may differ by entity bundle, all of those bundle fields have to share the same common field storage definition. Thus, the storage definitions can be defined by entity type only. The bundle fields corresponding to a field storage definition may provide addi

CssOptimizer::processCss

protected CssOptimizer::processCss($contents, $optimize = FALSE) Processes the contents of a stylesheet for aggregation. Parameters $contents: The contents of the stylesheet. $optimize: (optional) Boolean whether CSS contents should be minified. Defaults to FALSE. Return value Contents of the stylesheet including the imported stylesheets. File core/lib/Drupal/Core/Asset/CssOptimizer.php, line 185 Class CssOptimizer Optimizes a CSS asset. Namespace Drupal\Core\Asset Code protected fun

SearchQuery::getStatus

public SearchQuery::getStatus() Returns the query status bitmap. Return value int A bitmap indicating query status. Zero indicates there were no problems. A non-zero value is a combination of one or more of the following flags: SearchQuery::NO_POSITIVE_KEYWORDS SearchQuery::EXPRESSIONS_IGNORED SearchQuery::LOWER_CASE_OR SearchQuery::NO_KEYWORD_MATCHES File core/modules/search/src/SearchQuery.php, line 644 Class SearchQuery Search query extender and helper functions. Namespace Dru