EntityTestDefaultAccess.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php
  2. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php
  3. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php

Namespace

Drupal\entity_test\Entity

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestDefaultAccess.php

View source
<?php

namespace Drupal\entity_test\Entity;


/**
 * Defines a test entity class with no access control handler.
 *
 * @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"
 *   }
 * )
 */
class EntityTestDefaultAccess extends EntityTest {

}

Classes

Title Deprecated Summary
EntityTestDefaultAccess Defines a test entity class with no access control handler.

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