Drupal 8  8.0.2
MenuLinkContentAccessControlHandler Class Reference
Inheritance diagram for MenuLinkContentAccessControlHandler:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, AccessManagerInterface $access_manager)
 
- Public Member Functions inherited from EntityAccessControlHandler
 __construct (EntityTypeInterface $entity_type)
 
 access (EntityInterface $entity, $operation, AccountInterface $account=NULL, $return_as_object=FALSE)
 
 resetCache ()
 
 createAccess ($entity_bundle=NULL, AccountInterface $account=NULL, array $context=array(), $return_as_object=FALSE)
 
 fieldAccess ($operation, FieldDefinitionInterface $field_definition, AccountInterface $account=NULL, FieldItemListInterface $items=NULL, $return_as_object=FALSE)
 
- Public Member Functions inherited from EntityHandlerBase
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
- Public Member Functions inherited from EntityAccessControlHandlerInterface
 setModuleHandler (ModuleHandlerInterface $module_handler)
 

Static Public Member Functions

static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 

Protected Attributes

 $accessManager
 
- Protected Attributes inherited from EntityAccessControlHandler
 $accessCache = array()
 
 $entityTypeId
 
 $entityType
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Additional Inherited Members

- Protected Member Functions inherited from EntityAccessControlHandler
 checkAccess (EntityInterface $entity, $operation, AccountInterface $account)
 
 getCache ($cid, $operation, $langcode, AccountInterface $account)
 
 setCache ($access, $cid, $operation, $langcode, AccountInterface $account)
 
 checkCreateAccess (AccountInterface $account, array $context, $entity_bundle=NULL)
 
 prepareUser (AccountInterface $account=NULL)
 
 checkFieldAccess ($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items=NULL)
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 

Detailed Description

Defines the access control handler for the user entity type.

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
AccessManagerInterface  $access_manager 
)

Creates a new MenuLinkContentAccessControlHandler.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Access\AccessManagerInterface$access_managerThe access manager to check routes by name.

References Drupal\accessManager().

Here is the call graph for this function:

Member Function Documentation

static createInstance ( ContainerInterface  $container,
EntityTypeInterface  $entity_type 
)
static

{Instantiates a new instance of this entity handler.This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this object should use.
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
Returns
static A new instance of the entity handler.
}

Implements EntityHandlerInterface.

References EntityTypeInterface\get().

Here is the call graph for this function:


The documentation for this class was generated from the following file: