AccountProxy::id

public AccountProxy::id() Returns the user ID or 0 for anonymous. Return value int The user ID. Overrides AccountInterface::id File core/lib/Drupal/Core/Session/AccountProxy.php, line 67 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function id() { return $this->getAccount()->id(); }

MenuLinkTreeElement::$access

Whether this link is accessible by the current user. If the value is NULL the access was not determined yet, if an access result object, it was determined already. Type: \Drupal\Core\Access\AccessResultInterface|null File core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php, line 73 Class MenuLinkTreeElement Provides a value object to model an element in a menu link tree. Namespace Drupal\Core\Menu Code public $access;

Tags::explode

public static Tags::explode($tags) Explodes a string of tags into an array. Parameters string $tags: A string to explode. Return value array An array of tags. File core/lib/Drupal/Component/Utility/Tags.php, line 21 Class Tags Defines a class that can explode and implode tags. Namespace Drupal\Component\Utility Code public static function explode($tags) { // This regexp allows the following types of user input: // this, "somecompany, llc", "and ""this"" w,o.rks", foo bar $regex

hook_node_access

hook_node_access(\Drupal\node\NodeInterface $node, $op, \Drupal\Core\Session\AccountInterface $account) Controls access to a node. Modules may implement this hook if they want to have a say in whether or not a given user has access to perform a given operation on a node. The administrative account (user ID #1) always passes any access check, so this hook is not called in that case. Users with the "bypass node access" permission may always view and edit content through the administrative interfa

QuickEditController

Returns responses for Quick Edit module routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\quickedit\QuickEditController File core/modules/quickedit/src/QuickEditController.php, line 23 Namespace Drupal\quickedit Members Name Modifiers Type Description ControllerBase::$configFactory protected prope

system_cron

system_cron() Implements hook_cron(). Remove older rows from flood, batch cache and expirable keyvalue tables. File core/modules/system/system.module, line 1274 Configuration system that lets administrators modify the workings of the site. Code function system_cron() { // Clean up the flood. \Drupal::flood()->garbageCollection(); foreach (Cache::getBins() as $cache_backend) { $cache_backend->garbageCollection(); } // Clean up the expirable key value database store. if

LinkGenerator::$urlGenerator

The url generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/Utility/LinkGenerator.php, line 27 Class LinkGenerator Provides a class which generates a link with route names and parameters. Namespace Drupal\Core\Utility Code protected $urlGenerator;

DateHelper::minutes

public static DateHelper::minutes($format = 'i', $required = FALSE, $increment = 1) Constructs an array of minutes. Parameters string $format: (optional) A date format string that indicates the format to use for the minutes. Defaults to 'i'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. int $increment: An integer value to increment the values. Defaults to 1. Return value array An array of minutes in the selected format. File core/lib/Dr

StringBase::__construct

public StringBase::__construct($values = array()) Constructs a new locale string object. Parameters object|array $values: Object or array with initial values. File core/modules/locale/src/StringBase.php, line 60 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function __construct($values = array()) { $this->setValues((array) $values); }

NullRouteMatch::getParameters

public NullRouteMatch::getParameters() Returns the bag of all processed route parameters. Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object. Return value \Symfony\Component\HttpFoundation\ParameterBag The parameter bag. Overr