diff --git a/core/modules/block/src/BlockRepository.php b/core/modules/block/src/BlockRepository.php
index 2f27df3d196fbb9ac9b334045677f2c580fd892f..146155717a7bcfd8591fcc2114b0ab13e05b88ca 100644
--- a/core/modules/block/src/BlockRepository.php
+++ b/core/modules/block/src/BlockRepository.php
@@ -26,6 +26,13 @@ class BlockRepository implements BlockRepositoryInterface {
    */
   protected $themeManager;
 
+  /**
+   * The context handler.
+   *
+   * @var \Drupal\Core\Plugin\Context\ContextHandlerInterface
+   */
+  protected $contextHandler;
+
   /**
    * Constructs a new BlockRepository.
    *