public function MessageUiContextualLinkDeleteMessage::getRouterInfo in Message UI 8
Return the an array with the router ID and message info.
Return value
array Array contains the title and the URL.
Overrides MessageUiViewsContextualLinksInterface::getRouterInfo
File
- src/
Plugin/ MessageUiViewsContextualLinks/ MessageUiContextualLinkDeleteMessage.php, line 69
Class
- MessageUiContextualLinkDeleteMessage
- Contextual link to view the message.
Namespace
Drupal\message_ui\Plugin\MessageUiViewsContextualLinksCode
public function getRouterInfo() {
return [
'title' => t('Delete'),
'url' => Url::fromRoute('entity.message.delete_form', [
'message' => $this->message
->id(),
]),
];
}