public function MockQuickEditEntityFieldAccessCheck::accessEditEntityField in Drupal 9
Same name and namespace in other branches
- 8 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_testCode
public function accessEditEntityField(EntityInterface $entity, $field_name) {
return TRUE;
}