protected function AutomaticUpdatesPsa::message in Automatic Updates 8
Return a message.
Parameters
string $title: The title.
string $link: The link.
Return value
\Drupal\Component\Render\FormattableMarkup The PSA or SA message.
2 calls to AutomaticUpdatesPsa::message()
- AutomaticUpdatesPsa::getPublicServiceMessages in src/
Services/ AutomaticUpdatesPsa.php - Get public service messages.
- AutomaticUpdatesPsa::parseConstraints in src/
Services/ AutomaticUpdatesPsa.php - Compare versions and add a message, if appropriate.
File
- src/
Services/ AutomaticUpdatesPsa.php, line 248
Class
- AutomaticUpdatesPsa
- Class AutomaticUpdatesPsa.
Namespace
Drupal\automatic_updates\ServicesCode
protected function message($title, $link) {
return new FormattableMarkup('<a href=":url">:message</a>', [
':message' => $title,
':url' => $link,
]);
}