projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d7
/
hook
/
image_style_flush.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig
b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig
new file mode 100644
(file)
index 0000000..
e561bb6
--- /dev/null
+++ b/
vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig
@@ -0,0
+1,7
@@
+/**
+ * Implements hook_image_style_flush().
+ */
+function {{ machine_name }}_image_style_flush($style) {
+ // Empty cached data that contains information about the style.
+ cache_clear_all('*', 'cache_mymodule', TRUE);
+}