class MockEditEntityFieldAccessCheck in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/quickedit/tests/modules/src/MockEditEntityFieldAccessCheck.php \Drupal\quickedit_test\MockEditEntityFieldAccessCheck
Access check for editing entity fields.
Hierarchy
- class \Drupal\quickedit_test\MockEditEntityFieldAccessCheck implements EditEntityFieldAccessCheckInterface
Expanded class hierarchy of MockEditEntityFieldAccessCheck
2 files declare their use of MockEditEntityFieldAccessCheck
- MetadataGeneratorTest.php in core/
modules/ quickedit/ src/ Tests/ MetadataGeneratorTest.php - Contains \Drupal\quickedit\Tests\MetadataGeneratorTest.
- QuickEditIntegrationTest.php in core/
modules/ editor/ src/ Tests/ QuickEditIntegrationTest.php - Contains \Drupal\editor\Tests\QuickEditIntegrationTest.
File
- core/
modules/ quickedit/ tests/ modules/ src/ MockEditEntityFieldAccessCheck.php, line 16 - Contains \Drupal\quickedit_test\MockEditEntityFieldAccessCheck.
Namespace
Drupal\quickedit_testView source
class MockEditEntityFieldAccessCheck implements EditEntityFieldAccessCheckInterface {
/**
* {@inheritdoc}
*/
public function accessEditEntityField(EntityInterface $entity, $field_name) {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockEditEntityFieldAccessCheck:: |
public | function |
Checks access to edit the requested field of the requested entity. Overrides EditEntityFieldAccessCheckInterface:: |