You are here

function shortcode_basic_tags_theme in Shortcode 2.0.x

Same name and namespace in other branches
  1. 8 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_theme()
  2. 6 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_theme()
  3. 7.2 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_theme()
  4. 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_theme()

Implements hook_theme().

File

shortcode_basic_tags/shortcode_basic_tags.module, line 11
Register hooks for ShortCodes that use Twig templates.

Code

function shortcode_basic_tags_theme() {
  return [
    // Quote.
    'shortcode_quote' => [
      'variables' => [
        'author' => NULL,
        'class' => NULL,
        'text' => '',
      ],
    ],
    // Image.
    'shortcode_img' => [
      'variables' => [
        'src' => NULL,
        'alt' => NULL,
        'class' => '',
      ],
    ],
    // Button.
    'shortcode_button' => [
      'variables' => [
        'url' => NULL,
        'attributes' => [],
        'text' => '',
      ],
    ],
    // Dropcap.
    'shortcode_dropcap' => [
      'variables' => [
        'class' => NULL,
        'text' => '',
      ],
    ],
    // Item.
    'shortcode_item' => [
      'variables' => [
        'type' => 'div',
        'attributes' => [],
        'text' => '',
      ],
    ],
    // Clear.
    'shortcode_clear' => [
      'variables' => [
        'type' => 'div',
        'attributes' => [],
        'text' => '',
      ],
    ],
    // Link.
    'shortcode_link' => [
      'variables' => [
        'url' => NULL,
        'attributes' => [],
        'text' => '',
      ],
    ],
  ];
}