diff --git a/core/modules/book/lib/Drupal/book/BookManager.php b/core/modules/book/lib/Drupal/book/BookManager.php index 1593c23..1f9522b 100644 --- a/core/modules/book/lib/Drupal/book/BookManager.php +++ b/core/modules/book/lib/Drupal/book/BookManager.php @@ -41,11 +41,11 @@ class BookManager { protected $translation; /** - * The config factory. + * The menu settings. * * @var \Drupal\Core\Config\ConfigFactory */ - protected $configFactory; + protected $menuConfig; /** * 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->configFactory = $config_factory; + $this->menuConfig = $config_factory->get('menu.settings'); } /** @@ -410,7 +410,7 @@ function updateID($book_link) { * A parent selection form element. */ function addParentSelectFormElements($book_link) { - if ($this->configFactory('menu.settings')->get('override_parent_selector')) { + if ($this->menuConfig->get('override_parent_selector')) { return array(); } // Offer a message or a drop-down to choose a different parent page.