diff --git a/src/Plugin/views/style/Splitview.php b/src/Plugin/views/style/Splitview.php
index 60d4d1c..dd220c2 100644
--- a/src/Plugin/views/style/Splitview.php
+++ b/src/Plugin/views/style/Splitview.php
@@ -69,7 +69,7 @@ class Splitview extends StylePluginBase {
 
     $form['view_mode'] = [
       '#type' => 'select',
-      '#options' => \Drupal::entityManager()->getViewModeOptions($entity_type),
+      '#options' => \Drupal::service('entity_display.repository')->getViewModeOptions($entity_type),
       '#description' => t('The viewmode to use for the first entries'),
       '#title' => $this->t('View mode'),
       '#default_value' => $this->options['view_mode'],
diff --git a/views_split.info.yml b/views_split.info.yml
index da2d52d..fc4f5da 100644
--- a/views_split.info.yml
+++ b/views_split.info.yml
@@ -2,6 +2,7 @@ name: Views Split
 type: module
 description: Views display plugin that allows the first xx results in a different viewmode
 core: 8.x
+core_version_requirement: ^8 || ^9
 package: Views
 dependencies:
   - views
