comparison core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheckInterface.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php
2
3 namespace Drupal\quickedit\Access;
4
5 use Drupal\Core\Entity\EntityInterface;
6
7 /**
8 * Access check for in-place editing entity fields.
9 */
10 interface QuickEditEntityFieldAccessCheckInterface {
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 }