You are here

class MockQuickEditEntityFieldAccessCheck in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php \Drupal\quickedit_test\MockQuickEditEntityFieldAccessCheck

Access check for in-place editing entity fields.

Hierarchy

Expanded class hierarchy of MockQuickEditEntityFieldAccessCheck

2 files declare their use of MockQuickEditEntityFieldAccessCheck
MetadataGeneratorTest.php in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
QuickEditIntegrationTest.php in core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php

File

core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php, line 11

Namespace

Drupal\quickedit_test
View source
class MockQuickEditEntityFieldAccessCheck implements QuickEditEntityFieldAccessCheckInterface {

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

}

Members