X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity_browser%2Fmodules%2Fentity_form%2Fsrc%2FPlugin%2FEntityBrowser%2FWidget%2FEntityForm.php;fp=web%2Fmodules%2Fcontrib%2Fentity_browser%2Fmodules%2Fentity_form%2Fsrc%2FPlugin%2FEntityBrowser%2FWidget%2FEntityForm.php;h=7901925a2cb1b4841f82cfbba7a1aa1267cb6916;hp=6ecfa7561f65d313771f4699fe595212223b0e4a;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/entity_browser/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php b/web/modules/contrib/entity_browser/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php index 6ecfa7561..7901925a2 100644 --- a/web/modules/contrib/entity_browser/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php +++ b/web/modules/contrib/entity_browser/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php @@ -239,4 +239,13 @@ class EntityForm extends WidgetBase { $this->configuration['form_mode'] = $this->configuration['form_mode']['form_select']; } + /** + * {@inheritdoc} + */ + public function access() { + return $this->entityTypeManager + ->getAccessControlHandler($this->configuration['entity_type']) + ->createAccess($this->configuration['bundle'], NULL, [], TRUE); + } + }