c7f14e261ac033cfd304be237f430dbb5f39801b
[yaffs-website] / web / core / modules / quickedit / src / Access / EditEntityFieldAccessCheckInterface.php
1 <?php
2
3 namespace Drupal\quickedit\Access;
4
5 use Drupal\Core\Entity\EntityInterface;
6
7 /**
8  * Access check for editing entity fields.
9  */
10 interface EditEntityFieldAccessCheckInterface {
11
12   /**
13    * Checks access to edit the requested field of the requested entity.
14    *
15    * @param \Drupal\Core\Entity\EntityInterface $entity
16    *   The entity.
17    * @param string $field_name
18    *   The field name.
19    *
20    * @return \Drupal\Core\Access\AccessResultInterface
21    *   The access result.
22    */
23   public function accessEditEntityField(EntityInterface $entity, $field_name);
24
25 }