You are here

public function DateRecurCachedHooks::hookTheme in Recurring Dates Field 3.1.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurCachedHooks.php \Drupal\date_recur\DateRecurCachedHooks::hookTheme()
  2. 3.x src/DateRecurCachedHooks.php \Drupal\date_recur\DateRecurCachedHooks::hookTheme()
  3. 3.0.x src/DateRecurCachedHooks.php \Drupal\date_recur\DateRecurCachedHooks::hookTheme()

Implements hook_theme().

See also

\hook_theme()

\date_recur_theme()

File

src/DateRecurCachedHooks.php, line 38

Class

DateRecurCachedHooks
Defines hooks that run when caches need to be rebuilt.

Namespace

Drupal\date_recur

Code

public function hookTheme(array $existing, string $type, string $theme, string $path) : array {
  return [
    'date_recur_basic_widget' => [
      'render element' => 'element',
    ],
    'date_recur_settings_frequency_table' => [
      'render element' => 'element',
    ],
    'date_recur_basic_formatter' => [
      'variables' => [
        'date' => NULL,
        'interpretation' => NULL,
        'is_recurring' => FALSE,
        'occurrences' => [],
      ],
    ],
  ];
}