interface QuickEditEntityFieldAccessCheckInterface

Same name in other branches
  1. 8.9.x 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

Title Sort descending Modifiers Object type Summary Overrides
QuickEditEntityFieldAccessCheckInterface::accessEditEntityField public function Checks access to edit the requested field of the requested entity. 2

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