Version 1
[yaffs-website] / web / core / modules / quickedit / src / Access / EditEntityFieldAccessCheckInterface.php
diff --git a/web/core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php b/web/core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php
new file mode 100644 (file)
index 0000000..c7f14e2
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\quickedit\Access;
+
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Access check for editing entity fields.
+ */
+interface EditEntityFieldAccessCheckInterface {
+
+  /**
+   * Checks access to edit the requested field of the requested entity.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The entity.
+   * @param string $field_name
+   *   The field name.
+   *
+   * @return \Drupal\Core\Access\AccessResultInterface
+   *   The access result.
+   */
+  public function accessEditEntityField(EntityInterface $entity, $field_name);
+
+}