EntityTestCache.php

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php
  3. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php

Namespace

Drupal\entity_test\Entity

File

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

View source
<?php

namespace Drupal\entity_test\Entity;


/**
 * Defines the test entity class.
 *
 * @ContentEntityType(
 *   id = "entity_test_cache",
 *   label = @Translation("Test entity with field cache"),
 *   handlers = {
 *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
 *     "form" = {
 *       "default" = "Drupal\entity_test\EntityTestForm"
 *     },
 *   },
 *   base_table = "entity_test_cache",
 *   entity_keys = {
 *     "id" = "id",
 *     "uuid" = "uuid",
 *     "bundle" = "type"
 *   }
 * )
 */
class EntityTestCache extends EntityTest {

}

Classes

Title Deprecated Summary
EntityTestCache Defines the test entity class.

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