class DevelEntityTestCanonical
Same name in other branches
- 8.x-1.x tests/modules/devel_entity_test/src/Entity/DevelEntityTestCanonical.php \Drupal\devel_entity_test\Entity\DevelEntityTestCanonical
- 5.x tests/modules/devel_entity_test/src/Entity/DevelEntityTestCanonical.php \Drupal\devel_entity_test\Entity\DevelEntityTestCanonical
Defines the test entity class.
Plugin annotation
@ContentEntityType(
id = "devel_entity_test_canonical",
label = @Translation("Devel test entity with canonical link"),
handlers = {
"list_builder" = "Drupal\entity_test\EntityTestListBuilder",
"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\Core\Entity\Routing\DefaultHtmlRouteProvider",
},
"translation" = "Drupal\content_translation\ContentTranslationHandler",
"views_data" = "Drupal\entity_test\EntityTestViewsData"
},
base_table = "devel_entity_test_canonical",
persistent_cache = FALSE,
entity_keys = {
"id" = "id",
"uuid" = "uuid",
"bundle" = "type",
"label" = "name",
"langcode" = "langcode",
},
links = {
"canonical" = "/devel_entity_test_canonical/{devel_entity_test_canonical}",
},
field_ui_base_route = "entity.entity_test.admin_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\devel_entity_test\Entity\DevelEntityTestCanonical 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 DevelEntityTestCanonical
File
-
tests/
modules/ devel_entity_test/ src/ Entity/ DevelEntityTestCanonical.php, line 42
Namespace
Drupal\devel_entity_test\EntityView source
class DevelEntityTestCanonical extends EntityTest {
}