You are here

function shariff_theme in Shariff Social Media Buttons 8

Same name and namespace in other branches
  1. 7 shariff.module \shariff_theme()

Implements hook_theme().

3 string references to 'shariff_theme'
ShariffBlock::blockForm in src/Plugin/Block/ShariffBlock.php
shariff_preprocess_block_shariff in ./shariff.module
Implements hook_preprocess().
_shariff_get_settings in ./shariff.module
Helper function to get the module settings.

File

./shariff.module, line 46
Integrating Shariff library, providing settings form and block.

Code

function shariff_theme($existing, $type, $theme, $path) {
  return [
    'block_shariff' => [
      'variables' => [
        'title' => NULL,
        'data_attributes' => NULL,
        'blocksettings' => NULL,
      ],
      'template' => 'shariff',
    ],
    'help_shariff' => [
      'variables' => [
        'title' => NULL,
        'content' => NULL,
      ],
      'template' => 'shariff--help',
    ],
  ];
}