function hook_message_message_ui_create_access_control in Message UI 8
Impact the message access control when creating the message.
Parameters
string $template: The template ID.
\Drupal\Core\Session\AccountInterface $account: The account object.
Return value
\Drupal\Core\Access\AccessResultAllowed The access results.
1 function implements hook_message_message_ui_create_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_create_access_control in modules/
message_ui_test/ message_ui_test.module - Implements hook_message_message_ui_create_access_control().
1 invocation of hook_message_message_ui_create_access_control()
- MessageAccessControlHandler::checkCreateAccess in src/
MessageAccessControlHandler.php - Separate from the checkAccess because the entity does not yet exist, it will be created during the 'add' process.
File
- ./
message_ui.api.php, line 55 - Defining the API part of the Message UI module.
Namespace
Drupal\message_uiCode
function hook_message_message_ui_create_access_control($template, AccountInterface $account) {
return AccessResult::allowed();
}