function template_preprocess_views_view_row_opml

template_preprocess_views_view_row_opml(&$variables)

Prepares variables for views OPML item templates.

Default template: views-view-row-opml.html.twig.

Parameters

array $variables: An associative array containing:

  • row: The raw results rows.

File

core/modules/views/views.theme.inc, line 970
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_views_view_row_opml(&$variables) {
  $item = $variables['row'];

  $variables['attributes'] = new Attribute($item);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.theme.inc/function/template_preprocess_views_view_row_opml/8.1.x