class EntityTestMulLangcodeKey
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulLangcodeKey.php \Drupal\entity_test\Entity\EntityTestMulLangcodeKey
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulLangcodeKey.php \Drupal\entity_test\Entity\EntityTestMulLangcodeKey
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulLangcodeKey.php \Drupal\entity_test\Entity\EntityTestMulLangcodeKey
Defines a test entity class using a custom langcode entity key.
Attributes
#[ContentEntityType(id: 'entity_test_mul_langcode_key', label: new TranslatableMarkup('Test entity - data table - langcode key'), entity_keys: [
'id' => 'id',
'uuid' => 'uuid',
'bundle' => 'type',
'label' => 'name',
'langcode' => 'custom_langcode_key',
'default_langcode' => 'custom_default_langcode_key',
], handlers: [
'view_builder' => TestViewBuilder::class,
'access' => EntityTestAccessControlHandler::class,
'form' => [
'default' => EntityTestForm::class,
'delete' => EntityTestDeleteForm::class,
],
'views_data' => EntityViewsData::class,
'route_provider' => [
'html' => DefaultHtmlRouteProvider::class,
],
], links: [
'add-form' => '/entity_test_mul_langcode_key/add/{type}',
'add-page' => '/entity_test_mul_langcode_key/add',
'canonical' => '/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}',
'edit-form' => '/entity_test_mul_langcode_key/manage/{entity_test_mul_langcode_key}/edit',
'delete-form' => '/entity_test/delete/entity_test_mul_langcode_key/{entity_test_mul_langcode_key}',
], admin_permission: 'administer entity_test content', base_table: 'entity_test_mul_langcode_key', data_table: 'entity_test_mul_langcode_key_field_data', translatable: TRUE, field_ui_base_route: 'entity.entity_test_mul_langcode_key.admin_form')]
Hierarchy
- class \Drupal\Core\Entity\EntityBase extends \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait implements \Drupal\Core\Entity\EntityBase
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\user\EntityOwnerInterface implements \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\entity_test\Entity\EntityTestMulLangcodeKey implements \Drupal\entity_test\Entity\EntityTest
- class \Drupal\entity_test\Entity\EntityTest extends \Drupal\user\EntityOwnerInterface implements \Drupal\Core\Entity\ContentEntityBase
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait implements \Drupal\Core\Entity\EntityBase
Expanded class hierarchy of EntityTestMulLangcodeKey
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulLangcodeKey.php, line 19
Namespace
Drupal\entity_test\EntityView source
class EntityTestMulLangcodeKey extends EntityTest {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.