You are here

public function MockQuickEditEntityFieldAccessCheck::accessEditEntityField in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php \Drupal\quickedit_test\MockQuickEditEntityFieldAccessCheck::accessEditEntityField()

Checks access to edit the requested field of the requested entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

string $field_name: The field name.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

Overrides QuickEditEntityFieldAccessCheckInterface::accessEditEntityField

File

core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php, line 16

Class

MockQuickEditEntityFieldAccessCheck
Access check for in-place editing entity fields.

Namespace

Drupal\quickedit_test

Code

public function accessEditEntityField(EntityInterface $entity, $field_name) {
  return TRUE;
}