You are here

public function MessageUiContextualLinkViewMessage::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

src/Plugin/MessageUiViewsContextualLinks/MessageUiContextualLinkViewMessage.php, line 62

Class

MessageUiContextualLinkViewMessage
Contextual link to view the message.

Namespace

Drupal\message_ui\Plugin\MessageUiViewsContextualLinks

Code

public function access() {
  return $this->message
    ->access('create');
}