Url

Defines an object that holds information about a URL. Hierarchy class \Drupal\Core\Url uses DependencySerializationTrait File core/lib/Drupal/Core/Url.php, line 17 Namespace Drupal\Core Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencySerializationTrait::__sleep public function DependencySerializationTrait::__wakeup public fu

DbUpdateController::selection

protected DbUpdateController::selection(Request $request) Renders a list of available database updates. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value array A render array. File core/modules/system/src/Controller/DbUpdateController.php, line 253 Class DbUpdateController Controller routines for database update routes. Namespace Drupal\system\Controller Code protected function selection(Request $request) { // Make sure there is no sta

DefaultLanguageItem

Alternative plugin implementation of the 'language' field type. Replaces the Core 'language' entity field type implementation, changes the default values used. Required settings are: target_type: The entity type to reference. Hierarchy class \Drupal\Core\TypedData\TypedData implements PluginInspectionInterface, TypedDataInterface uses StringTranslationTrait, TypedDataTraitclass \Drupal\Core\TypedData\Plugin\DataType\Map implements \IteratorAggregate, ComplexDataInterfaceclass \Drupal\Core\Fi

hook_tokens

hook_tokens($type, $tokens, array $data, array $options, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) Provide replacement values for placeholder tokens. This hook is invoked when someone calls \Drupal\Core\Utility\Token::replace(). That function first scans the text for [type:token] patterns, and splits the needed tokens into groups by type. Then hook_tokens() is invoked on each token-type group, allowing your module to respond by providing replacement text for any of the tokens

FormValidator::doValidateForm

protected FormValidator::doValidateForm(&$elements, FormStateInterface &$form_state, $form_id = NULL) Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators. Parameters $elements: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. The current

ViewUI

Stores UI related temporary settings. Hierarchy class \Drupal\views_ui\ViewUI implements ViewEntityInterface File core/modules/views_ui/src/ViewUI.php, line 25 Namespace Drupal\views_ui Members Name Modifiers Type Description ViewUI::$additionalQueries protected property Stores a list of database queries run beside the main one from views. ViewUI::$changed public property If this view has been changed. ViewUI::$changed_display public property Stores an ar

Module

Defines a class for updating modules using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Hierarchy class \Drupal\Core\Updater\Updaterclass \Drupal\Core\Updater\Module implements UpdaterInterface File core/lib/Drupal/Core/Updater/Module.php, line 11 Namespace Drupal\Core\Updater Members Name Modifiers Type Description Module::canUpdate public static function Determines whether this class can update the specified project. Module::canUpdateDirectory

ActionAddForm

Provides a form for action add forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\action\ActionFormBaseclass \Drupal\action\ActionAddForm File core/modules/action/src/ActionAddForm.php, line 14 Namespace Drupal\ac

hook_node_access_records

hook_node_access_records(\Drupal\node\NodeInterface $node) Set permissions for a node to be written to the database. When a node is saved, a module implementing hook_node_access_records() will be asked if it is interested in the access permissions for a node. If it is interested, it must respond with an array of permissions arrays for that node. Node access grants apply regardless of the published or unpublished status of the node. Implementations must make sure not to grant access to unpublish

ThemeInstaller::uninstall

public ThemeInstaller::uninstall(array $theme_list) Uninstalls a given list of themes. Uninstalling a theme removes all related configuration (like blocks) and invokes the 'themes_uninstalled' hook. Parameters array $theme_list: The themes to uninstall. Throws \InvalidArgumentException Thrown when you uninstall an not installed theme. Overrides ThemeInstallerInterface::uninstall See also hook_themes_uninstalled() File core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 214 Class Them