You are here

function site_verify_site_verify_engine_info in Site verification 8

Same name and namespace in other branches
  1. 6 site_verify.module \site_verify_site_verify_engine_info()
  2. 7.2 site_verify.module \site_verify_site_verify_engine_info()
  3. 7 site_verify.module \site_verify_site_verify_engine_info()

Implements hook_site_verify_engine_info().

File

./site_verify.module, line 11
Used to demonstrate the possibilities of routing in Drupal 8.

Code

function site_verify_site_verify_engine_info() {
  $engines['google'] = [
    'name' => t('Google'),
    'file' => TRUE,
    'file_contents' => TRUE,
    'file_example' => 'google1234567890abcdef.html',
    'meta' => TRUE,
    'meta_example' => '<meta name="google-site-verification" content="NbwaW3WIDp_SPsSsfl78Ive7F34-znm9lxLJXjuWNGE" />',
  ];
  $engines['yahoo'] = [
    'name' => t('Yahoo!'),
    'file' => TRUE,
    'file_contents' => TRUE,
    'meta' => TRUE,
  ];
  $engines['bing'] = [
    'name' => t('Bing'),
    'file' => TRUE,
    'file_contents' => TRUE,
    'meta' => TRUE,
  ];
  $engines['yandex'] = [
    'name' => t('Yandex'),
    'file' => TRUE,
    'file_example' => 'yandex_b5741169901f6c20.txt',
    'meta' => TRUE,
    'meta_example' => '<meta name="yandex-verification" content="b5741169901f6c20" />',
  ];
  $engines['custom'] = [
    'name' => t('Custom verification'),
    'file' => TRUE,
    'file_contents' => TRUE,
    'meta' => TRUE,
  ];
  return $engines;
}