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

__get($name)

Allows to access deprecated/removed properties.

__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.

Parameters

$name

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityCreateAccessCheck object.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

AccessResultInterface access(AccountInterface $account, NodeInterface $node_preview)

Checks access to the node preview page.

Parameters

AccountInterface $account

The currently logged in account.

NodeInterface $node_preview

The node that is being previewed.

Return Value

AccessResultInterface

The access result.