You are here

public function MessageUiContextualLinkNotifyMessage::access in Message UI 8

Checking if the user have access to do the action.

Return value

\Drupal\Core\Access\AccessResultInterface Access result interface object.

Overrides MessageUiViewsContextualLinksInterface::access

File

modules/message_notify_ui/src/Plugin/MessageUiViewsContextualLinks/MessageUiContextualLinkNotifyMessage.php, line 74

Class

MessageUiContextualLinkNotifyMessage
Notify message contextual plugin link.

Namespace

Drupal\message_notify_ui\Plugin\MessageUiViewsContextualLinks

Code

public function access() {
  return $this->currentUser
    ->hasPermission('send message through the ui');
}