user_pass_rehash

user_pass_rehash(UserInterface $account, $timestamp) Creates a unique hash value for use in time-dependent per-user URLs. This hash is normally used to build a unique and secure URL that is sent to the user by email for purposes such as resetting the user's password. In order to validate the URL, the same hash can be generated again, from the same information, and compared to the hash value from the URL. The hash contains the time stamp, the user's last login time, the numeric user ID, and the

SharedTempStore::getMetadata

public SharedTempStore::getMetadata($key) Returns the metadata associated with a particular key/value pair. Parameters string $key: The key of the data to store. Return value mixed An object with the owner and updated time if the key has a value, or NULL otherwise. File core/modules/user/src/SharedTempStore.php, line 216 Class SharedTempStore Stores and retrieves temporary data for a given owner. Namespace Drupal\user Code public function getMetadata($key) { // Fetch the key/value

image-formatter.html.twig

Default theme implementation to display a formatted image field. Available variables: image: A collection of image data. image_style: An optional image style. url: An optional URL the image can be linked to. See also template_preprocess_image_formatter() File core/modules/image/templates/image-formatter.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

Connection::getAttachedDatabases

public Connection::getAttachedDatabases() Gets all the attached databases. Return value array An array of attached database names. See also \Drupal\Core\Database\Driver\sqlite\Connection::__construct() File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 184 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public function getAttachedDatabases() { return $this->attachedDatabases; }

ArchiverManager::createInstance

public ArchiverManager::createInstance($plugin_id, array $configuration = array()) Creates a pre-configured instance of a plugin. Parameters string $plugin_id: The ID of the plugin being instantiated. array $configuration: An array of configuration relevant to the plugin instance. Return value object A fully configured plugin instance. Throws \Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid. Overrides PluginManagerBase::create

ConfigFactoryOverrideInterface::getCacheSuffix

public ConfigFactoryOverrideInterface::getCacheSuffix() The string to append to the configuration static cache name. Return value string A string to append to the configuration static cache name. File core/lib/Drupal/Core/Config/ConfigFactoryOverrideInterface.php, line 28 Class ConfigFactoryOverrideInterface Defines the interface for a configuration factory override object. Namespace Drupal\Core\Config Code public function getCacheSuffix();

FileCacheBackendInterface::fetch

public FileCacheBackendInterface::fetch(array $cids) Fetches data from the cache backend. Parameters array $cids: The cache IDs to fetch. Return value array An array containing cache entries keyed by cache ID. File core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php, line 19 Class FileCacheBackendInterface Defines an interface inspired by APCu for FileCache backends. Namespace Drupal\Component\FileCache Code public function fetch(array $cids);

RouteProcessorCurrent::__construct

public RouteProcessorCurrent::__construct(RouteMatchInterface $route_match) Constructs a new RouteProcessorCurrent. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php, line 27 Class RouteProcessorCurrent Provides a route processor to replace <current>. Namespace Drupal\Core\RouteProcessor Code public function __construct(RouteMatchInterface $route_match) { $this->route

NestedArray

Provides helpers to perform operations on nested arrays and array keys of variable depth. Hierarchy class \Drupal\Component\Utility\NestedArray Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/NestedArray.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description NestedArray::filter public static function Filters a nested array recursively. Nested

element_info_property

element_info_property($type, $property_name, $default = NULL) Retrieves a single property for the defined element type. Parameters $type: An element type as defined by an element plugin. $property_name: The property within the element type that should be returned. $default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal::service('element_info')->get