You are here

public function Security::sitePath in Security Review 8

Returns the site path.

Return value

string Absolute site path.

File

src/Security.php, line 323

Class

Security
Provides frequently used security-related data.

Namespace

Drupal\security_review

Code

public function sitePath() {
  return DRUPAL_ROOT . '/' . $this->kernel
    ->getSitePath();
}