UseCacheBackendTrait::$cacheBackend

Cache backend instance. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php, line 15 Class UseCacheBackendTrait Provides methods to use a cache backend while respecting a 'use caches' flag. Namespace Drupal\Core\Cache Code protected $cacheBackend;

EntityType::addConstraint

public EntityType::addConstraint($constraint_name, $options = NULL) Adds a validation constraint. See \Drupal\Core\TypedData\DataDefinitionInterface::getConstraints() for details on how constraints are defined. Parameters string $constraint_name: The name of the constraint to add, i.e. its plugin id. array|null $options: The constraint options as required by the constraint plugin, or NULL. Return value $this Overrides EntityTypeInterface::addConstraint File core/lib/Drupal/Core/Entity/EntityT

UserAuthenticationController::floodControl

protected UserAuthenticationController::floodControl(Request $request, $username) Enforces flood control for the current login request. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. string $username: The user name sent for login credentials. File core/modules/user/src/Controller/UserAuthenticationController.php, line 293 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\us

DatabaseQueue::createItem

public DatabaseQueue::createItem($data) Adds a queue item and store it directly to the queue. Parameters $data: Arbitrary data to be associated with the new task in the queue. Return value A unique ID if the item was successfully created and was (best effort) added to the queue, otherwise FALSE. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue. Overrides QueueInterface::createItem File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line

template_preprocess_views_ui_view_preview_section

template_preprocess_views_ui_view_preview_section(&$variables) Prepares variables for views UI view preview section templates. Default template: views-ui-view-preview-section.html.twig. Parameters array $variables: An associative array containing: view: The view object. section: The section name of a View (e.g. title, rows or pager). File core/modules/views_ui/views_ui.theme.inc, line 466 Preprocessors and theme functions for the Views UI. Code function template_preprocess_views_ui_v

node-add-list.html.twig

Default theme implementation to list node types available for adding content. This list is displayed on the Add content admin page. Available variables: types: A list of content types, each with the following properties: add_link: Link to create a piece of content of this type. description: Description of this type of content. See also template_preprocess_node_add_list() File core/modules/node/templates/node-add-list.html.twig Related topics Theme system overview Functions and templat

RouteMatch::getParameterNames

protected RouteMatch::getParameterNames() Returns the names of all parameters for the currently matched route. Return value array Route parameter names as both the keys and values. File core/lib/Drupal/Core/Routing/RouteMatch.php, line 143 Class RouteMatch Default object representing the results of routing. Namespace Drupal\Core\Routing Code protected function getParameterNames() { $names = array(); if ($route = $this->getRouteObject()) { // Variables defined in path and ho

LibraryDiscoveryParser::fileValidUri

protected LibraryDiscoveryParser::fileValidUri($source) Wraps file_valid_uri(). File core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 396 Class LibraryDiscoveryParser Parses library files to get extension data. Namespace Drupal\Core\Asset Code protected function fileValidUri($source) { return file_valid_uri($source); }

User::getLastAccessedTime

public User::getLastAccessedTime() The timestamp when the account last accessed the site. A value of 0 means the user has never accessed the site. Return value int Timestamp of the last access. Overrides AccountInterface::getLastAccessedTime File core/modules/user/src/Entity/User.php, line 244 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getLastAccessedTime() { return $this->get('access')->value; }

RevisionableInterface::getRevisionId

public RevisionableInterface::getRevisionId() Gets the revision identifier of the entity. Return value The revision identifier of the entity, or NULL if the entity does not have a revision identifier. File core/lib/Drupal/Core/Entity/RevisionableInterface.php, line 40 Class RevisionableInterface Provides methods for an entity to support revisions. Namespace Drupal\Core\Entity Code public function getRevisionId();