Commit 0f968f6d authored by webchick's avatar webchick

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

parent e12261d0
......@@ -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}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment