Created
March 22, 2018 13:37
-
-
Save slivorezka/8ba09445c562fada02923682982b96fa to your computer and use it in GitHub Desktop.
hook_preprocess_views_view_field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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