You are here

class MockEditEntityFieldAccessCheck 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

Access check for editing entity fields.

Hierarchy

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_test
View source
class MockEditEntityFieldAccessCheck implements EditEntityFieldAccessCheckInterface {

  /**
   * {@inheritdoc}
   */
  public function accessEditEntityField(EntityInterface $entity, $field_name) {
    return TRUE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MockEditEntityFieldAccessCheck::accessEditEntityField public function Checks access to edit the requested field of the requested entity. Overrides EditEntityFieldAccessCheckInterface::accessEditEntityField