public function ViewsCacheOutput::getAction in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getAction
File
- src/
Plugin/ SiteAuditCheck/ ViewsCacheOutput.php, line 52
Class
- ViewsCacheOutput
- Provides the ViewsCacheOutput Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getAction() {
if (!in_array($this->score, [
SiteAuditCheckBase::AUDIT_CHECK_SCORE_INFO,
SiteAuditCheckBase::AUDIT_CHECK_SCORE_PASS,
])) {
$ret_val = $this
->t('Rendered output should be cached for as long as possible (if the query changes, the output will be refreshed).');
$steps = [
$this
->t('Go to /admin/structure/views/'),
$this
->t('Edit the View in question'),
$this
->t('Select the Display'),
$this
->t('Click Advanced'),
$this
->t('Next to Caching, click to edit.'),
$this
->t('Caching: (something other than None)'),
];
$ret_val = [
'#theme' => 'item_list',
'#title' => $this
->t('Rendered output should be cached for as long as possible (if the query changes, the output will be refreshed).'),
// '#description' => $this->t(),
'#items' => $steps,
'#list_type' => 'ol',
];
return $ret_val;
}
}