DefaultRequestPolicy::__construct

public DefaultRequestPolicy::__construct() Constructs the default Dynamic Page Cache request policy. File core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php, line 20 Class DefaultRequestPolicy The default Dynamic Page Cache request policy. Namespace Drupal\dynamic_page_cache\PageCache\RequestPolicy Code public function __construct() { $this->addPolicy(new CommandLineOrUnsafeMethod()); }

DefaultRequestPolicy

The default page cache request policy. Delivery of cached pages is denied if either the application is running from the command line or the request was not initiated with a safe method (GET or HEAD). Also caching is only allowed for requests without a session cookie. Hierarchy class \Drupal\Core\PageCache\ChainRequestPolicy implements ChainRequestPolicyInterfaceclass \Drupal\Core\PageCache\DefaultRequestPolicy File core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php, line 16 Namespac

DefaultRequestPolicy

The default Dynamic Page Cache request policy. Delivery of cached pages is denied if either the application is running from the command line or the request was not initiated with a safe method (GET or HEAD). Hierarchy class \Drupal\Core\PageCache\ChainRequestPolicy implements ChainRequestPolicyInterfaceclass \Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy File core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php, line 15 Namespace

DefaultMenuLinkTreeManipulators::__construct

public DefaultMenuLinkTreeManipulators::__construct(AccessManagerInterface $access_manager, AccountInterface $account, QueryFactory $query_factory) Constructs a \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators object. Parameters \Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager. \Drupal\Core\Session\AccountInterface $account: The current user. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. File core/lib/Drupal/Core/Menu/DefaultMen

DefaultMenuLinkTreeManipulators::menuLinkCheckAccess

protected DefaultMenuLinkTreeManipulators::menuLinkCheckAccess(MenuLinkInterface $instance) Checks access for one menu link instance. Parameters \Drupal\Core\Menu\MenuLinkInterface $instance: The menu link instance. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 198 Class DefaultMenuLinkTreeManipulators Provides a couple of menu link tree manipulators. Namespace Drupal\Core\Menu Code p

DefaultMenuLinkTreeManipulators::generateIndexAndSort

public DefaultMenuLinkTreeManipulators::generateIndexAndSort(array $tree) Generates a unique index and sorts by it. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 226 Class DefaultMenuLinkTreeManipulators Provides a couple of menu link tree manipulators. Namespace Drupal\Core\Menu Cod

DefaultMenuLinkTreeManipulators::flatten

public DefaultMenuLinkTreeManipulators::flatten(array $tree) Flattens the tree to a single level. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 252 Class DefaultMenuLinkTreeManipulators Provides a couple of menu link tree manipulators. Namespace Drupal\Core\Menu Code public function

DefaultMenuLinkTreeManipulators::collectNodeLinks

protected DefaultMenuLinkTreeManipulators::collectNodeLinks(array &$tree, array &$node_links) Collects the node links in the menu tree. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. array $node_links: Stores references to menu link elements to effectively set access. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 175 Class Def

DefaultMenuLinkTreeManipulators::checkNodeAccess

public DefaultMenuLinkTreeManipulators::checkNodeAccess(array $tree) Performs access checking for nodes in an optimized way. This manipulator should be added before the generic ::checkAccess() one, because it provides a performance optimization for ::checkAccess(). Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeMani

DefaultMenuLinkTreeManipulators::checkAccess

public DefaultMenuLinkTreeManipulators::checkAccess(array $tree) Performs access checks of a menu tree. Sets the 'access' property to AccessResultInterface objects on menu link tree elements. Descends into subtrees if the root of the subtree is accessible. Inaccessible subtrees are deleted, except the top-level inaccessible link, to be compatible with render caching. (This means that top-level inaccessible links are *not* removed; it is up to the code doing something with the tree to exclude in