You are here

EntityTestBrokenCollectionRoute.php in Entity Form Cancel Button 8

File

tests/modules/cancel_button_test/src/Entity/EntityTestBrokenCollectionRoute.php
View source
<?php

namespace Drupal\cancel_button_test\Entity;

use Drupal\entity_test\Entity\EntityTest;

/**
 * Defines a test entity type with administrative routes.
 *
 * @ContentEntityType(
 *   id = "entity_test_broken_collection",
 *   label = @Translation("Test entity - missing collection route"),
 *   handlers = {
 *     "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
 *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
 *     "form" = {
 *       "default" = "Drupal\entity_test\EntityTestForm",
 *       "delete" = "Drupal\entity_test\EntityTestDeleteForm"
 *     },
 *     "route_provider" = {
 *       "html" = "Drupal\cancel_button_test\Entity\Routing\BrokenHtmlRouteProvider",
 *     },
 *   },
 *   base_table = "entity_test_missing_routes",
 *   data_table = "entity_test_missing_routes_property_data",
 *   admin_permission = "administer entity_test content",
 *   translatable = TRUE,
 *   entity_keys = {
 *     "id" = "id",
 *     "uuid" = "uuid",
 *     "bundle" = "type",
 *     "label" = "name",
 *     "langcode" = "langcode",
 *   },
 *   links = {
 *     "add-form" = "/entity_test_broken_collection/add",
 *     "edit-form" = "/entity_test_broken_collection/manage/{entity_test_broken_collection}/edit",
 *     "delete-form" = "/entity_test_broken_collection/delete/entity_test/{entity_test_broken_collection}",
 *     "collection" = "/entity_test_broken_collection/list",
 *   },
 * )
 */
class EntityTestBrokenCollectionRoute extends EntityTest {

}

Classes

Namesort descending Description
EntityTestBrokenCollectionRoute Defines a test entity type with administrative routes.