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

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']))

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

DiffEngine::_shift_boundaries

protected DiffEngine::_shift_boundaries($lines, &$changed, $other_changed) Adjust inserts/deletes of identical lines to join changes as much as possible. We do something when a run of changed lines include a line at one end and has an excluded, identical line at the other. We are free to choose which identical line is included. `compareseq' usually chooses the one at the beginning, but usually it is cleaner to consider the following identical line to be the "change". This is extracted verba

ActionAddForm::create

public static ActionAddForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service co

LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN

Default location of gettext file on the translation server. See also locale_translation_default_translation_server(). File core/modules/locale/locale.module, line 102 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN = 'http://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po';

ModulesUninstallForm::buildForm

public ModulesUninstallForm::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 FormInterface::buildForm File core/modules/system/src/Form/ModulesUninstallForm.php, line 75 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Dr

ResponsiveImageStyle::setFallbackImageStyle

public ResponsiveImageStyle::setFallbackImageStyle($fallback_image_style) Sets the fallback image style for the responsive image style. Parameters string $fallback_image_style: The fallback image style ID. Return value $this Overrides ResponsiveImageStyleInterface::setFallbackImageStyle File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 175 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code pub

FormStateInterface::setErrorByName

public FormStateInterface::setErrorByName($name, $message = '') Files an error against a form element. When a validation error is detected, the validator calls this method to indicate which element needs to be changed and provide an error message. This causes the Form API to not execute the form submit handlers, and instead to re-display the form to the user with the corresponding elements rendered with an 'error' CSS class (shown as red by default). The standard behavior of this method can be

ExtensionInstallStorage

Storage to access configuration and schema in enabled extensions. Hierarchy class \Drupal\Core\Config\FileStorage implements StorageInterfaceclass \Drupal\Core\Config\InstallStorageclass \Drupal\Core\Config\ExtensionInstallStorage See also \Drupal\Core\Config\ConfigInstaller \Drupal\Core\Config\TypedConfigManager File core/lib/Drupal/Core/Config/ExtensionInstallStorage.php, line 14 Namespace Drupal\Core\Config Members Name Modifiers Type Description ExtensionInstallStorage: