EntityTestViewBuilder.php

Same filename in this branch
  1. 8.9.x core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilder.php
Same filename in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilder.php
  2. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestViewBuilder.php
  3. 10 core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilder.php
  4. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestViewBuilder.php
  5. 11.x core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilder.php
  6. 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestViewBuilder.php

Namespace

Drupal\entity_test\Entity

File

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

View source
<?php

namespace Drupal\entity_test\Entity;


/**
 * Test entity class for testing a view builder.
 *
 * @ContentEntityType(
 *   id = "entity_test_view_builder",
 *   label = @Translation("Entity Test view builder"),
 *   handlers = {
 *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
 *     "view_builder" = "Drupal\entity_test\EntityTestViewBuilderOverriddenView",
 *   },
 *   base_table = "entity_test_view_builder",
 *   render_cache = FALSE,
 *   entity_keys = {
 *     "id" = "id",
 *     "uuid" = "uuid",
 *     "label" = "name",
 *     "bundle" = "type",
 *     "langcode" = "langcode",
 *   }
 * )
 */
class EntityTestViewBuilder extends EntityTest {

}

Classes

Title Deprecated Summary
EntityTestViewBuilder Test entity class for testing a view builder.

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