Skip to content
Snippets Groups Projects
Commit 0f968f6d authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2167639 by tstoeckler: EntityTest::label() is broken and not needed.

parent e12261d0
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -106,22 +106,6 @@ public static function preCreate(EntityStorageControllerInterface $storage_contr
}
}
/**
* Overrides Drupal\entity\Entity::label().
*/
public function label() {
$info = $this->getEntityType();
if (!isset($langcode)) {
$langcode = $this->activeLangcode;
}
if ($info->getKey('laebl') == 'name') {
return $this->getTranslation($langcode)->name->value;
}
else {
return parent::label($langcode);
}
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment