sna_blocks.theme.inc in Simple Node Archive Blocks 8
Preprocessors and helper functions to make theming easier.
File
template/sna_blocks.theme.incView source
<?php
/**
* @file
* Preprocessors and helper functions to make theming easier.
*/
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\String;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Template\Attribute;
use Drupal\Core\Url;
/**
* Prepares variables for view templates.
*
* Default template: sna-blocks-view-simplenodearchive.html.twig.
*
* @param array $variables
* An associative array containing:
* - view: A ViewExecutable object.
* - rows: The raw row data.
* - options: An array of options. Each option contains:
* - separator: A string to be placed between inline fields to keep them
* visually distinct.
*/
function template_preprocess_sna_blocks_view_simplenodearchive(&$variables) {
$variables['archive_block'] = 'some data here.';
}
Functions
Name | Description |
---|---|
template_preprocess_sna_blocks_view_simplenodearchive | Prepares variables for view templates. |