You are here

private function DeleteMultiple::filterCallback in Message UI 8

Filter callback; Set text for each message which will be deleted.

Parameters

\Drupal\message\Entity\Message $message: The message object.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup A simple text to show which message is deleted.

File

src/Form/DeleteMultiple.php, line 125

Class

DeleteMultiple
Provides a message deletion confirmation form.

Namespace

Drupal\message_ui\Form

Code

private function filterCallback(Message $message) {
  $params = [
    '@id' => $message
      ->id(),
    '@template' => $message
      ->getTemplate()
      ->label(),
  ];
  return t('Delete message ID @id fo template @template', $params);
}