Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entity_browser / modules / entity_form / src / Plugin / EntityBrowser / Widget / EntityForm.php
index 6ecfa7561f65d313771f4699fe595212223b0e4a..7901925a2cb1b4841f82cfbba7a1aa1267cb6916 100644 (file)
@@ -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);
+  }
+
 }