RecursiveContextualValidator::$context

The execution context. Type: \Symfony\Component\Validator\Context\ExecutionContextInterface File core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 37 Class RecursiveContextualValidator Defines a recursive contextual validator for Typed Data. Namespace Drupal\Core\TypedData\Validation Code protected $context;

hook_views_form_substitutions

hook_views_form_substitutions() Replace special strings when processing a view with form elements. Return value array An associative array where each key is a string to be replaced, and the corresponding value is its replacement. The value will be escaped unless it is already marked safe. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/views/views.api.php, line 678 Describes hooks and plugins provided by the Views module. Code function hook_v

update_set_schema

update_set_schema($module, $schema_version) Forces a module to a given schema version. This function is rarely necessary. Parameters string $module: Name of the module. string $schema_version: The schema version the module should be set to. File core/includes/update.inc, line 113 Drupal database update API. Code function update_set_schema($module, $schema_version) { \Drupal::keyValue('system.schema')->set($module, $schema_version); // system_list_reset() is in module.inc but that woul

EditDetails::submitForm

public EditDetails::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides ViewsFormBase::submitForm File core/modules/views_ui/src/Form/Ajax/EditDetails.php, line 71 Class EditDetails Provides a form for editing the details of a View. Namespace Drupal\views_ui\Form\Ajax Code public

StatementPrefetch::fetchAllAssoc

public StatementPrefetch::fetchAllAssoc($key, $fetch_style = NULL) Returns the result set as an associative array keyed by the given field. If the given key appears multiple times, later records will overwrite earlier ones. Parameters $key: The name of the field on which to index the array. $fetch: The fetchmode to use. If set to PDO::FETCH_ASSOC, PDO::FETCH_NUM, or PDO::FETCH_BOTH the returned value with be an array of arrays. For any other value it will be an array of objects. By default, th

DateFormatFormBase::exists

public DateFormatFormBase::exists($entity_id, array $element) Checks for an existing date format. Parameters string|int $entity_id: The entity ID. array $element: The form element. Return value bool TRUE if this format already exists, FALSE otherwise. File core/modules/system/src/Form/DateFormatFormBase.php, line 68 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public function exists($entity_id, array $element) { return (bool) $th

FormStateInterface::setProgrammed

public FormStateInterface::setProgrammed($programmed = TRUE) Sets that this form was submitted programmatically. Parameters bool $programmed: If TRUE, the form was submitted programmatically. Return value $this File core/lib/Drupal/Core/Form/FormStateInterface.php, line 855 Class FormStateInterface Provides an interface for an object containing the current state of a form. Namespace Drupal\Core\Form Code public function setProgrammed($programmed = TRUE);

PasswordInterface::needsRehash

public PasswordInterface::needsRehash($hash) Check whether a hashed password needs to be replaced with a new hash. This is typically called during the login process when the plain text password is available. A new hash is needed when the desired iteration count has changed by a modification of the password-service in the dependency injection container or if the user's password hash was generated in an update like user_update_7000() (see the Drupal 7 documentation). Parameters string $hash: The

RouteSubscriber::$state

The state key value store. Type: \Drupal\Core\State\StateInterface File core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 45 Class RouteSubscriber Builds up the routes of all views. Namespace Drupal\views\EventSubscriber Code protected $state;

ReplaceTitleCommand::$title

The page title to replace. Type: string File core/modules/views/src/Ajax/ReplaceTitleCommand.php, line 19 Class ReplaceTitleCommand Provides an AJAX command for replacing the page title. Namespace Drupal\views\Ajax Code protected $title;