BookController::$bookManager

The book manager. Type: \Drupal\book\BookManagerInterface File core/modules/book/src/Controller/BookController.php, line 26 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code protected $bookManager;

hook_entity_access

hook_entity_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) Control entity operation access. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to check access to. string $operation: The operation that is to be performed on $entity. \Drupal\Core\Session\AccountInterface $account: The account trying to access the entity. Return value \Drupal\Core\Access\AccessResultInterface The access result. The final result is c

RouteProcessorManager::processOutbound

public RouteProcessorManager::processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound route. Parameters string $route_name: The route name. \Symfony\Component\Routing\Route $route: The outbound route to process. array $parameters: An array of parameters to be passed to the route compiler. Passed by reference. \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route processor

AccessResultForbidden

Value object indicating a forbidden access result, with cacheability metadata. Hierarchy class \Drupal\Core\Access\AccessResult implements AccessResultInterface, RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Access\AccessResultForbidden implements AccessResultReasonInterface File core/lib/Drupal/Core/Access/AccessResultForbidden.php, line 8 Namespace Drupal\Core\Access Members Name Modifiers Type Description AccessResult::allow

User::setLastLoginTime

public User::setLastLoginTime($timestamp) Sets the UNIX timestamp when the user last logged in. Parameters int $timestamp: Timestamp of the last login time. Return value \Drupal\user\UserInterface The called user entity. Overrides UserInterface::setLastLoginTime File core/modules/user/src/Entity/User.php, line 266 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function setLastLoginTime($timestamp) { $this->get('login')->value = $timestamp;

BookNavigationCacheContext::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/book/src/Cache/BookNavigationCacheContext.php, line 32 Class BookNavigationCacheContext Defines the book navigation cache context service. Namespace Drupal\book\Cache Code protected $requestStack;

DataReferenceTargetDefinition

A typed data definition class for the entity reference target_id property. The target_id property differs from other data definitions in that it is required at the storage level, but not at the validation level. This is because its value can be set just-in-time using the preSave() method. Validation for the target_id property is provided by the 'ValidReference' validation constraint. Hierarchy class \Drupal\Core\TypedData\DataDefinition implements \ArrayAccess, DataDefinitionInterfaceclass \Dru

MenuTreeStorage::loadLinks

protected MenuTreeStorage::loadLinks($menu_name, MenuTreeParameters $parameters) Loads links in the given menu, according to the given tree parameters. Parameters string $menu_name: A menu name. \Drupal\Core\Menu\MenuTreeParameters $parameters: The parameters to determine which menu links to be loaded into a tree. This method will set the absolute minimum depth, which is used in MenuTreeStorage::doBuildTreeData(). Return value array A flat array of menu links that are part of the menu. Each a

ToolbarController

Defines a controller for the toolbar module. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\toolbar\Controller\ToolbarController File core/modules/toolbar/src/Controller/ToolbarController.php, line 14 Namespace Drupal\toolbar\Controller Members Name Modifiers Type Description ControllerBase::$configFactory

BaseFieldDefinition::getConfig

public BaseFieldDefinition::getConfig($bundle) Gets an object that can be saved in configuration. Base fields are defined in code. In order to configure field definition properties per bundle use this method to create an override that can be saved in configuration. Parameters string $bundle: The bundle to get the configurable field for. Return value \Drupal\Core\Field\FieldConfigInterface Overrides FieldDefinitionInterface::getConfig See also \Drupal\Core\Field\Entity\BaseFieldBundleOverride