class EntityTestViewBuilder

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

Test entity class for testing a view builder.

Plugin annotation


@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",
  }
)

Hierarchy

Expanded class hierarchy of EntityTestViewBuilder

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestViewBuilder.php, line 26

Namespace

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

}

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