You are here

function acquia_contenthub_theme in Acquia Content Hub 8

Implements hook_theme().

File

./acquia_contenthub.module, line 200
Contains acquia_contenthub.module.

Code

function acquia_contenthub_theme($existing, $type, $theme, $path) {

  // Normally theme suggestion templates are only picked up when they are in
  // themes. We explicitly define theme suggestions here so that the templates
  // in the templates folder are picked up.
  return [
    'html__acquia_contenthub' => [
      'template' => 'html--acquia-contenthub',
      'render element' => 'html',
      'preprocess functions' => [
        'template_preprocess_html',
      ],
    ],
    'page__acquia_contenthub' => [
      'template' => 'page--acquia-contenthub',
      'render element' => 'page',
      'preprocess functions' => [
        'template_preprocess_page',
      ],
    ],
    'region__content__acquia_contenthub' => [
      'template' => 'region--content--acquia-contenthub',
      'render element' => 'elements',
      'preprocess functions' => [
        'template_preprocess_region',
      ],
    ],
    'block__block_content__acquia_contenthub' => [
      'render element' => 'elements',
      'base hook' => 'block',
    ],
  ];
}