function SearchPage::configFactory

Same name in other branches
  1. 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::configFactory()
  2. 8.9.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::configFactory()
  3. 10 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::configFactory()

Wraps the config factory.

Return value

\Drupal\Core\Config\ConfigFactoryInterface A config factory object.

File

core/modules/search/src/Entity/SearchPage.php, line 246

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

protected function configFactory() {
    return \Drupal::service('config.factory');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.