function yoast_seo_theme in Real-time SEO for Drupal 8.2
Same name and namespace in other branches
- 8 yoast_seo.module \yoast_seo_theme()
Implements hook_theme().
File
- ./
yoast_seo.module, line 49 - Contains yoast_seo.module.
Code
function yoast_seo_theme() {
$theme['yoast_snippet'] = [
'variables' => [
'wrapper_target_id' => NULL,
'snippet_target_id' => NULL,
'output_target_id' => NULL,
],
];
$theme['overall_score'] = [
'variables' => [
'overall_score_target_id' => NULL,
'overall_score' => NULL,
],
'template' => 'overall_score',
];
$theme['view_overall_score'] = [
'variables' => [
'overall_score' => NULL,
],
'template' => 'view_overall_score',
];
$theme['content_score'] = [
'variables' => [],
'template' => 'content_score',
];
return $theme;
}