X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fentity_create_access.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fentity_create_access.twig;h=af759337642709f6f11d13fd5cd46b8392ab1c57;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig new file mode 100644 index 000000000..af7593376 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig @@ -0,0 +1,7 @@ +/** + * Implements hook_entity_create_access(). + */ +function {{ machine_name }}_entity_create_access(\Drupal\Core\Session\AccountInterface $account, array $context, $entity_bundle) { + // No opinion. + return AccessResult::neutral(); +}