class TransientNodeCache (View source)

Simple cache for nodes that is intended to be used in NodePrivilegeContext.

WARNING: This cache may contain nodes that should not be visible to the current user. Only use this cache in NodePrivilegeContext.

Methods

NodeInterface|null
cache(string $nodeIdentifier, callable $getter)

No description

Details

NodeInterface|null cache(string $nodeIdentifier, callable $getter)

No description

Parameters

string $nodeIdentifier
callable $getter

Return Value

NodeInterface|null