You are here

function expand_collapse_formatter_theme in Expand collapse formatter 8

Register theme implementations.

Parameters

array $existing: An array of existing implementations.

string $type: Whether a theme, module, etc. is being processed.

string $theme: The actual name of theme.

string $path: The directory path of the theme or module, so that it doesn't need to be looked up.

Return value

array An associative array of information about theme implementations.

File

./expand_collapse_formatter.module, line 42
Contains expand_collapse_formatter.module..

Code

function expand_collapse_formatter_theme($existing, $type, $theme, $path) {
  $theme = [
    'expand_collapse_formatter' => [
      'variables' => [
        'id' => NULL,
        'trim_length' => NULL,
        'default_state' => NULL,
        'link_text_open' => NULL,
        'link_text_close' => NULL,
        'link_class_open' => NULL,
        'link_class_close' => NULL,
        'value' => NULL,
      ],
      'template' => 'expand-collapse-formatter',
    ],
  ];
  return $theme;
}