class NodeAddAccessCheck implements AccessInterface (View source)

Determines access to for node add pages.

Traits

Provides a standard way to announce deprecated properties.

Properties

protected $deprecatedProperties {@inheritdoc}
protected EntityTypeManagerInterface $entityTypeManager

The entity type manager.

Methods

__get($name)

Allows to access deprecated/removed properties.

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityCreateAccessCheck object.

access(AccountInterface $account, NodeTypeInterface $node_type = NULL)

Checks access to the node add page for the node type.

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.

AccessResultInterface access(AccountInterface $account, NodeTypeInterface $node_type = NULL)

Checks access to the node add page for the node type.

Parameters

AccountInterface $account

The currently logged in account.

NodeTypeInterface $node_type

(optional) The node type. If not specified, access is allowed if there exists at least one node type for which the user may create a node.

Return Value

AccessResultInterface

The access result.