function hook_message_message_ui_access_control in Message UI 8
Impact the message access control.
Parameters
\Drupal\message\Entity\Message $message: The message object.
string $op: The operation.
\Drupal\Core\Session\AccountInterface $account: The account object.
Return value
\Drupal\Core\Access\AccessResultAllowed The access result.
1 function implements hook_message_message_ui_access_control()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- message_ui_test_message_message_ui_access_control in modules/
message_ui_test/ message_ui_test.module - Implements hook_message_message_ui_access_control().
1 invocation of hook_message_message_ui_access_control()
- MessageAccessControlHandler::checkAccess in src/
MessageAccessControlHandler.php - Link the activities to the permissions. checkAccess is called with the $operation as defined in the routing.yml file.
File
- ./
message_ui.api.php, line 40 - Defining the API part of the Message UI module.
Namespace
Drupal\message_uiCode
function hook_message_message_ui_access_control(Message $message, $op, AccountInterface $account) {
return AccessResult::allowed();
}