protected function ProdCheckBase::generateDescription in Production check & Production monitor 8
Helper function to generate generic 'settings OK' description.
12 calls to ProdCheckBase::generateDescription()
- Contact::failMessages in src/
Plugin/ ProdCheck/ Modules/ Contact.php - Returns the fail messages for the check
- CssAggregated::failMessages in src/
Plugin/ ProdCheck/ Performance/ CssAggregated.php - Returns the fail messages for the check
- CssAggregated::successMessages in src/
Plugin/ ProdCheck/ Performance/ CssAggregated.php - Returns the success messages for the check.
- ErrorReporting::successMessages in src/
Plugin/ ProdCheck/ Settings/ ErrorReporting.php - Returns the success messages for the check.
- JsAggregated::failMessages in src/
Plugin/ ProdCheck/ Performance/ JsAggregated.php - Returns the fail messages for the check
File
- src/
Plugin/ ProdCheck/ ProdCheckBase.php, line 155
Class
- ProdCheckBase
- Base class for all the prod check plugins.
Namespace
Drupal\prod_check\Plugin\ProdCheckCode
protected function generateDescription($title, $route_name, $text = 'Your %link settings are OK for production use.') {
$url = Url::fromRoute($route_name);
$url
->setOption('attributes', [
'title' => $title,
]);
$destination = \Drupal::destination()
->getAsArray();
$url
->setOption('query', $destination);
return $this
->t($text, $this
->generateLinkArray($title, $route_name));
}