By Phil Frilling, 30 August, 2016

/**
 * Implements template_preprocess_taxonomy_term().
 */
function THEME_preprocess_taxonomy_term(&$variables) {
  // Add the term name as a variable to use as a class in the twig file.
  $variables['term_name'] = $variables['term']->label();
}

Tags

By Phil Frilling, 30 August, 2016

/**
 * Implements hook_theme_suggestions_alter().
 */
function THEME_theme_suggestions_alter(&$suggestions, $variables, $hook) {
  switch ($hook) {
    case 'taxonomy_term':
      // Add a view mode suggestion for taxonomy terms.
      $suggestions[] 

Tags

By Phil Frilling, 30 August, 2016
Not sure what happened with GlusterFS tonight. Around 19:07 EST, the AWS alarm sounded. After rebooting the GlusterFS servers and the web servers, nothing was bringing the sites back online. There was a terrible lag when accessing the GlusterFS file systems and there weren't any glaring errors in the log files. In an effort to get the sites loading again, I began making an archive all of the files from the GlusterFS server mount point and was planning to copy them onto the main web server (web1).

Tags

By Phil Frilling, 19 August, 2016
Adding placeholder text to a Drupal 8 form element that is the label of the form can be done in your .theme file with the hook template_preprocess_input().


/**
 * Implements template_preprocess_input().
 */
function MYTHEME_preprocess_input(&$variables) {
  // Set a placeholder for all search form elements.
  if ($