You are here

public function EditEntityFieldAccessCheckInterface::accessEditEntityField in Zircon Profile 8

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

2 methods override EditEntityFieldAccessCheckInterface::accessEditEntityField()
EditEntityFieldAccessCheck::accessEditEntityField in core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php
Checks access to edit the requested field of the requested entity.
MockEditEntityFieldAccessCheck::accessEditEntityField in core/modules/quickedit/tests/modules/src/MockEditEntityFieldAccessCheck.php
Checks access to edit the requested field of the requested entity.

File

core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php, line 28
Contains \Drupal\quickedit\Access\EditEntityFieldAccessCheckInterface.

Class

EditEntityFieldAccessCheckInterface
Access check for editing entity fields.

Namespace

Drupal\quickedit\Access

Code

public function accessEditEntityField(EntityInterface $entity, $field_name);