NodePreviewAccessCheck
class NodePreviewAccessCheck implements AccessInterface (View source)
Determines access to node previews.
Traits
Provides a standard way to announce deprecated properties.
Properties
| protected | $deprecatedProperties | {@inheritdoc} | |
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager service. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a EntityCreateAccessCheck object.
access(AccountInterface $account, NodeInterface $node_preview)
Checks access to the node preview page.
Details
__get($name)
Allows to access deprecated/removed properties.
This method must be public.
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a EntityCreateAccessCheck object.
AccessResultInterface
access(AccountInterface $account, NodeInterface $node_preview)
Checks access to the node preview page.