diff --git a/core/modules/book/lib/Drupal/book/BookManager.php b/core/modules/book/lib/Drupal/book/BookManager.php index 1f9522b..a93cfe3 100644 --- a/core/modules/book/lib/Drupal/book/BookManager.php +++ b/core/modules/book/lib/Drupal/book/BookManager.php @@ -45,7 +45,7 @@ class BookManager { * * @var \Drupal\Core\Config\ConfigFactory */ - protected $menuConfig; + protected $ConfigFactory; /** * Books Array. @@ -61,7 +61,7 @@ public function __construct(Connection $connection, EntityManager $entity_manage $this->connection = $connection; $this->entityManager = $entity_manager; $this->translation = $translation; - $this->menuConfig = $config_factory->get('menu.settings'); + $this->configFactory = $config_factory; } /** @@ -410,7 +410,7 @@ function updateID($book_link) { * A parent selection form element. */ function addParentSelectFormElements($book_link) { - if ($this->menuConfig->get('override_parent_selector')) { + if ($this->configFactory->get('menu.settings')->get('override_parent_selector')) { return array(); } // Offer a message or a drop-down to choose a different parent page.