Drupal 8  8.0.2
ContactPageAccess Class Reference
Inheritance diagram for ContactPageAccess:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory, UserDataInterface $user_data)
 
 access (UserInterface $user, AccountInterface $account)
 

Protected Attributes

 $configFactory
 
 $userData
 

Detailed Description

Access check for contact_personal_page route.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory,
UserDataInterface  $user_data 
)

Constructs a ContactPageAccess instance.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe config factory.
\Drupal\user\UserDataInterface$user_dataThe user data service.

References Drupal\configFactory().

Here is the call graph for this function:

Member Function Documentation

access ( UserInterface  $user,
AccountInterface  $account 
)

Checks access to the given user's contact page.

Parameters
\Drupal\user\UserInterface$userThe user being contacted.
\Drupal\Core\Session\AccountInterface$accountThe currently logged in account.
Returns
The access result.

References AccessResult\allowedIfHasPermission(), Drupal\configFactory(), AccessResult\forbidden(), AccountInterface\id(), and AccessResult\neutral().

Here is the call graph for this function:


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