diff --git a/src/Form/RevisionRevertForm.php b/src/Form/RevisionRevertForm.php index 6544cc8fc9ec956405f5ec0021d708ae3fe1bc9f..005583336519beaf68fe9aa260843e4fca222f96 100644 --- a/src/Form/RevisionRevertForm.php +++ b/src/Form/RevisionRevertForm.php @@ -167,10 +167,7 @@ class RevisionRevertForm extends ConfirmFormBase { protected function getBundleLabel(RevisionableInterface $revision) { /** @var \Drupal\Core\Entity\EntityInterface|\Drupal\Core\Entity\RevisionableInterface $revision */ $bundle_info = $this->bundleInformation->getBundleInfo($revision->getEntityTypeId()); - if (isset($bundle_info[$revision->bundle()])) { - return $bundle_info[$revision->bundle()]['label']; - } - return $revision->getEntityType()->getLabel(); + return $bundle_info[$revision->bundle()]['label']; } }