SessionManager::destroy

public SessionManager::destroy() Destroys the current session and removes session cookies. Overrides SessionManagerInterface::destroy File core/lib/Drupal/Core/Session/SessionManager.php, line 254 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code public function destroy() { session_destroy(); // Unset the session cookies. $session_name = $this->getName(); $cookies = $this->requestStack->getCurrentRequest()->cookies; // setcookie() can

WidgetBase::getFieldSettings

protected WidgetBase::getFieldSettings() Returns the array of field settings. Return value array The array of settings. File core/lib/Drupal/Core/Field/WidgetBase.php, line 515 Class WidgetBase Base class for 'Field widget' plugin implementations. Namespace Drupal\Core\Field Code protected function getFieldSettings() { return $this->fieldDefinition->getSettings(); }

hook_shortcut_default_set

hook_shortcut_default_set($account) Return the name of a default shortcut set for the provided user account. This hook allows modules to define default shortcut sets for a particular user that differ from the site-wide default (for example, a module may want to define default shortcuts on a per-role basis). The default shortcut set is used only when the user does not have any other shortcut set explicitly assigned to them. Note that only one default shortcut set can exist per user, so when mult

AttachmentsTrait::setAttachments

public AttachmentsTrait::setAttachments(array $attachments) Sets attachments. Parameters array $attachments: The attachments to set. Return value $this Overrides AttachmentsInterface::setAttachments File core/lib/Drupal/Core/Render/AttachmentsTrait.php, line 37 Class AttachmentsTrait Provides an implementation of AttachmentsInterface. Namespace Drupal\Core\Render Code public function setAttachments(array $attachments) { $this->attachments = $attachments; return $this; }

LOCALE_JS_OBJECT_CONTEXT

Regular expression to match an object containing a key 'context'. Pattern to match a JS object containing a 'context key' with a string value, which is captured. Will fail if there are nested objects. File core/modules/locale/locale.module, line 47 Enables the translation of the user interface to languages other than English. Code define('LOCALE_JS_OBJECT_CONTEXT', ' \{ # match object literal start .*? # match anything, non-greedy (?: # match a form

FieldConfigBase::getDefaultValueCallback

public FieldConfigBase::getDefaultValueCallback() Returns the default value callback for the field. This method retrieves the raw property assigned to the field definition. When computing the runtime default value for a field in a given entity, ::getDefaultValue() should be used instead. Return value string|null The default value callback for the field. Overrides FieldDefinitionInterface::getDefaultValueCallback See also FieldDefinitionInterface::getDefaultValue() FieldDefinitionInterface::ge

ModerationStateTransition::$stateFrom

ID of from state. Type: string File core/modules/content_moderation/src/Entity/ModerationStateTransition.php, line 62 Class ModerationStateTransition Defines the Moderation state transition entity. Namespace Drupal\content_moderation\Entity Code protected $stateFrom;

ViewAjaxController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 49 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $renderer;

StringBase::$locations

The string locations indexed by type. Type: string File core/modules/locale/src/StringBase.php, line 24 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $locations;

ConfigManagerInterface::getEntityTypeIdByName

public ConfigManagerInterface::getEntityTypeIdByName($name) Returns the entity type of a configuration object. Parameters string $name: The configuration object name. Return value string|null Either the entity type name, or NULL if none match. File core/lib/Drupal/Core/Config/ConfigManagerInterface.php, line 19 Class ConfigManagerInterface Provides an interface for configuration manager. Namespace Drupal\Core\Config Code public function getEntityTypeIdByName($name);