You are here

interface QuickEditEntityFieldAccessCheckInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheckInterface.php \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheckInterface
  2. 9 core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheckInterface.php \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheckInterface

Access check for in-place editing entity fields.

Hierarchy

Expanded class hierarchy of QuickEditEntityFieldAccessCheckInterface

All classes that implement QuickEditEntityFieldAccessCheckInterface

2 files declare their use of QuickEditEntityFieldAccessCheckInterface
MetadataGenerator.php in core/modules/quickedit/src/MetadataGenerator.php
MockQuickEditEntityFieldAccessCheck.php in core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php

File

core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheckInterface.php, line 10

Namespace

Drupal\quickedit\Access
View source
interface QuickEditEntityFieldAccessCheckInterface {

  /**
   * 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);

}

Members