You are here

function yoast_seo_theme in Real-time SEO for Drupal 8

Same name and namespace in other branches
  1. 8.2 yoast_seo.module \yoast_seo_theme()

Implements hook_theme().

File

./yoast_seo.module, line 86
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;
}