Commit 365de8a7 authored by Joshua Sedler's avatar Joshua Sedler 🤸🏼
Browse files

Issue #3303728: Write an update hook to inform admins about twig changes

parent 647f02c4
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
<?php

use Drupal\fences\TagManagerInterface;

/**
 * @file
 * Installation hooks for Fences module.
 */

use Drupal\fences\TagManagerInterface;

/**
 * Add status field.
 */
@@ -41,3 +41,12 @@ function fences_update_8301(&$sandbox) {
    }
  }
}

/**
 * Fences field.html.twig changed. See 3.x release notes!
 */
function fences_update_8302() {
  // See https://www.drupal.org/project/fences/issues/3303655
  // and https://www.drupal.org/project/fences/issues/1343578
  return t('IMPORTANT: Fences field.html.twig changed from fences 8.x-2.x -> 3.x! If you overwrite field.html.twig in your template, you may need to compare and adopt changes! If not, everything should be fine.');
}