public function MessageUiContextualLinkEditMessage::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/ MessageUiContextualLinkEditMessage.php, line 69
Class
- MessageUiContextualLinkEditMessage
- Contextual link to edit the message.
Namespace
Drupal\message_ui\Plugin\MessageUiViewsContextualLinksCode
public function getRouterInfo() {
return [
'title' => t('Edit'),
'url' => Url::fromRoute('entity.message.edit_form', [
'message' => $this->message
->id(),
]),
];
}