Creates or initializes the bundle date if needed.
File
- drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationTestBase.php, line 140
- Contains \Drupal\entity\Tests\EntityTranslationTestBase.
Class
- EntityTranslationTestBase
- Tests entity translation workflows.
Namespace
Drupal\translation_entity\Tests
Code
protected function setupBundle() {
if (empty($this->bundle)) {
$this->bundle = $this->entityType;
}
}