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
// Drupal 8 developper http://codenator.org | |
function THEMENAME_preprocess_views_view_field__field_tags(&$vars) { | |
$rendered = $vars['field']->getItems($vars['row']); | |
//added icon on front of tags | |
$renderedArray[] = [ | |
'#markup' => '<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>' | |
]; | |
if (is_array($rendered)) { | |
foreach ($rendered as $one) { | |
//dpm($one['rendered']); |
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
server { | |
server_name yoursite.com; | |
root /usr/share/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
} |