class EntityTestDefaultAccess

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php \Drupal\entity_test\Entity\EntityTestDefaultAccess
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php \Drupal\entity_test\Entity\EntityTestDefaultAccess
  3. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php \Drupal\entity_test\Entity\EntityTestDefaultAccess

Defines a test entity class with no access control handler.

Plugin annotation


@ContentEntityType(
  id = "entity_test_default_access",
  label = @Translation("Test entity with default access"),
  base_table = "entity_test_default_access",
  entity_keys = {
    "id" = "id",
    "bundle" = "type"
  }
)

Hierarchy

Expanded class hierarchy of EntityTestDefaultAccess

1 file declares its use of EntityTestDefaultAccess
EntityAccessControlHandlerTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php, line 20

Namespace

Drupal\entity_test\Entity
View source
class EntityTestDefaultAccess extends EntityTest {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.