You are here

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

modules/message_notify_ui/src/Plugin/MessageUiViewsContextualLinks/MessageUiContextualLinkNotifyMessage.php, line 81

Class

MessageUiContextualLinkNotifyMessage
Notify message contextual plugin link.

Namespace

Drupal\message_notify_ui\Plugin\MessageUiViewsContextualLinks

Code

public function getRouterInfo() {
  return [
    'title' => t('Notify'),
    'url' => Url::fromRoute('entity.message.notify_form', [
      'message' => $this->message
        ->id(),
    ]),
  ];
}