You are here

class MockQuickEditEntityFieldAccessCheck in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php \Drupal\quickedit_test\MockQuickEditEntityFieldAccessCheck
  2. 10 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
EditorIntegrationTest.php in core/modules/quickedit/tests/src/Kernel/EditorIntegrationTest.php
MetadataGeneratorTest.php in core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.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