Skip to content

Instantly share code, notes, and snippets.

@slivorezka
Created March 22, 2018 13:37
Show Gist options
  • Save slivorezka/8ba09445c562fada02923682982b96fa to your computer and use it in GitHub Desktop.
Save slivorezka/8ba09445c562fada02923682982b96fa to your computer and use it in GitHub Desktop.
hook_preprocess_views_view_field
<?php
/**
* Implements hook_preprocess_views_view_field().
*/
function MODULE_preprocess_views_view_field(&$variables) {
/** @var \Drupal\views\ViewExecutable $view */
$view = $variables['view'];
if ($view->id() == 'schedule') {
if ($view->current_display == 'embed_1') {
$variables['output'] = 'awdaDAWDawd';
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment