UserLoginForm::validateName

public UserLoginForm::validateName(array &$form, FormStateInterface $form_state) Sets an error if supplied username has been blocked. File core/modules/user/src/Form/UserLoginForm.php, line 149 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function validateName(array &$form, FormStateInterface $form_state) { if (!$form_state->isValueEmpty('name') && user_is_blocked($form_state->getValue('name'))) { // Blocked in user

StatusMessages

Provides a messages element. Used to display results of drupal_set_message() calls. Usage example: $build['status_messages'] = [ '#type' => 'status_messages', ]; Plugin annotation @RenderElement("status_messages") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements Elemen

EntityAutocompleteController

Defines a route controller for entity autocomplete form elements. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\system\Controller\EntityAutocompleteController File core/modules/system/src/Controller/EntityAutocompleteController.php, line 20 Namespace Drupal\system\Controller Members Name Modifiers Type Desc

DeleteForm::getQuestion

public DeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/path/src/Form/DeleteForm.php, line 59 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function getQuestion() { return t('Are you sure you want to delete path alias %title?', array('%title' => $this->pathAlias['alias']))

QueryInterface::condition

public QueryInterface::condition($field, $value = NULL, $operator = NULL, $langcode = NULL) Add a condition to the query or a condition group. For example, to find all entities containing both the Turkish 'merhaba' and the Polish 'siema' within a 'greetings' text field: $entity_ids = \Drupal::entityQuery($entity_type) ->condition('greetings', 'merhaba', '=', 'tr') ->condition('greetings.value', 'siema', '=', 'pl') ->execute(); Parameters $field: Name of the field being

DatabaseQueue::claimItem

public DatabaseQueue::claimItem($lease_time = 30) Claims an item in the queue for processing. Parameters $lease_time: How long the processing is expected to take in seconds, defaults to an hour. After this lease expires, the item will be reset and another consumer can claim the item. For idempotent tasks (which can be run multiple times without side effects), shorter lease times would result in lower latency in case a consumer fails. For tasks that should not be run more than once (non-idempot

ActionInterface::executeMultiple

public ActionInterface::executeMultiple(array $objects) Executes the plugin for an array of objects. Parameters array $objects: An array of entities. File core/lib/Drupal/Core/Action/ActionInterface.php, line 39 Class ActionInterface Provides an interface for an Action plugin. Namespace Drupal\Core\Action Code public function executeMultiple(array $objects);

comment_field_config_create

comment_field_config_create(FieldConfigInterface $field) Implements hook_ENTITY_TYPE_create() for 'field_config'. File core/modules/comment/comment.module, line 140 Enables users to comment on published content. Code function comment_field_config_create(FieldConfigInterface $field) { if ($field->getType() == 'comment' && !$field->isSyncing()) { // Assign default values for the field. $default_value = $field->getDefaultValueLiteral(); $default_value += array(arra

Comment::bundleFieldDefinitions

public static Comment::bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) Provides field definitions for a specific bundle. This function can return definitions both for bundle fields (fields that are not defined in $base_field_definitions, and therefore might not exist on some bundles) as well as bundle-specific overrides of base fields (fields that are defined in $base_field_definitions, and therefore exist for all bundles). However, bundle-specif

HelpController::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/modules/help/src/Controller/HelpController.php, line 22 Class HelpController Controller routines for help routes. Namespace Drupal\help\Controller Code protected $routeMatch;