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
/
d8
/
hook
/
ENTITY_TYPE_load.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig
b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig
new file mode 100644
(file)
index 0000000..
6eeaf81
--- /dev/null
+++ b/
vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig
@@ -0,0
+1,8
@@
+/**
+ * Implements hook_ENTITY_TYPE_load().
+ */
+function {{ machine_name }}_ENTITY_TYPE_load($entities) {
+ foreach ($entities as $entity) {
+ $entity->foo = mymodule_add_something($entity);
+ }
+}