diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php
index d65594d..dc96147 100644
--- a/core/lib/Drupal/Core/Entity/EntityManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityManager.php
@@ -350,7 +350,7 @@ public function getFormModeOptionsByBundle($entity_type_id, $bundle) {
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
    */
   public function clearDisplayModeInfo() {
-    $this->container->get('entity_display.repository')->clearDisplayModeInfo();
+    return $this->container->get('entity_display.repository')->clearDisplayModeInfo();
   }
 
   /**
