public function MessageUiContextualLinkDeleteMessage::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/ MessageUiContextualLinkDeleteMessage.php, line 62
Class
- MessageUiContextualLinkDeleteMessage
- Contextual link to view the message.
Namespace
Drupal\message_ui\Plugin\MessageUiViewsContextualLinksCode
public function access() {
return $this->message
->access('delete');
}