You are here

function template_preprocess_sna_blocks_view_simplenodearchive in Simple Node Archive Blocks 8

Prepares variables for view templates.

Default template: sna-blocks-view-simplenodearchive.html.twig.

Parameters

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.

File

template/sna_blocks.theme.inc, line 26
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_sna_blocks_view_simplenodearchive(&$variables) {
  $variables['archive_block'] = 'some data here.';
}