You are here

public function MockEditEntityFieldAccessCheck::accessEditEntityField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/quickedit/tests/modules/src/MockEditEntityFieldAccessCheck.php \Drupal\quickedit_test\MockEditEntityFieldAccessCheck::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 EditEntityFieldAccessCheckInterface::accessEditEntityField

File

core/modules/quickedit/tests/modules/src/MockEditEntityFieldAccessCheck.php, line 21
Contains \Drupal\quickedit_test\MockEditEntityFieldAccessCheck.

Class

MockEditEntityFieldAccessCheck
Access check for editing entity fields.

Namespace

Drupal\quickedit_test

Code

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