You are here

public function MessageUiContextualLinkEditMessage::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/MessageUiContextualLinkEditMessage.php, line 62

Class

MessageUiContextualLinkEditMessage
Contextual link to edit the message.

Namespace

Drupal\message_ui\Plugin\MessageUiViewsContextualLinks

Code

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