Commit 94266ed9 authored by catch's avatar catch
Browse files

Issue #2388629 by kajalkiran, Canutza: remove drupal_is_front_page()

parent eae2db53
......@@ -318,7 +318,6 @@ function install_begin_request($class_loader, &$install_state) {
require_once __DIR__ . '/file.inc';
require_once __DIR__ . '/install.inc';
require_once __DIR__ . '/schema.inc';
require_once __DIR__ . '/path.inc';
require_once __DIR__ . '/database.inc';
require_once __DIR__ . '/form.inc';
require_once __DIR__ . '/batch.inc';
......
<?php
/**
* @file
* Functions to handle paths in Drupal.
*/
use Drupal\Core\ParamConverter\ParamNotConvertedException;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
/**
* Check if the current page is the front page.
*
* @return
* Boolean value: TRUE if the current page is the front page; FALSE if otherwise.
*
* @deprecated as of Drupal 8.0. Use
* \Drupal\Core\Path\PathMatcherInterface::isFrontPage() instead.
*/
function drupal_is_front_page() {
return \Drupal::service('path.matcher')->isFrontPage();
}
......@@ -23,7 +23,6 @@ function _drupal_maintenance_theme() {
return;
}
require_once __DIR__ . '/path.inc';
require_once __DIR__ . '/theme.inc';
require_once __DIR__ . '/common.inc';
require_once __DIR__ . '/unicode.inc';
......
......@@ -435,7 +435,6 @@ public function getContainer() {
public function loadLegacyIncludes() {
require_once $this->root . '/core/includes/common.inc';
require_once $this->root . '/core/includes/database.inc';
require_once $this->root . '/core/includes/path.inc';
require_once $this->root . '/core/includes/module.inc';
require_once $this->root . '/core/includes/theme.inc';
require_once $this->root . '/core/includes/pager.inc';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment