interface 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);

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.