NodeAddAccessCheck
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
__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.
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a EntityCreateAccessCheck object.
AccessResultInterface
access(AccountInterface $account, NodeTypeInterface $node_type = NULL)
Checks access to the node add page for the node type.