class EntityTestAddPage
Same name in other branches
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestAddPage.php \Drupal\entity_test\Entity\EntityTestAddPage
Test entity class routes.
Plugin annotation
@ContentEntityType(
id = "entity_test_add_page",
label = @Translation("Entity test route add page"),
handlers = {
"form" = {
"default" = "Drupal\entity_test\EntityTestForm",
},
"route_provider" = {
"html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
},
},
admin_permission = "administer entity_test content",
base_table = "entity_test_add_page",
render_cache = FALSE,
entity_keys = {
"id" = "id",
"uuid" = "uuid",
"bundle" = "type",
"label" = "name",
},
links = {
"add-page" = "/entity_test_add_page/{user}/add",
"add-form" = "/entity_test_add_page/add/{user}/form",
},
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\entity_test\Entity\EntityTestAddPage extends \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\user\EntityOwnerInterface
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of EntityTestAddPage
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestAddPage.php, line 34
Namespace
Drupal\entity_test\EntityView source
class EntityTestAddPage extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.