function DrupalBoot::valid_root

8.0.x DrupalBoot.php DrupalBoot::valid_root($path)
7.x DrupalBoot.php DrupalBoot::valid_root($path)
master DrupalBoot.php DrupalBoot::valid_root($path)

This function determines if the specified path points to the root directory of a CMS that can be bootstrapped by the specific subclass that implements it.

These functions should be written such that one and only one class will return TRUE for any given $path.

Parameters

$path to a directory to test:

Return value

TRUE if $path is a valid root directory

Overrides BaseBoot::valid_root

3 methods override DrupalBoot::valid_root()
DrupalBoot6::valid_root in lib/Drush/Boot/DrupalBoot6.php
This function determines if the specified path points to the root directory of a CMS that can be bootstrapped by the specific subclass that implements it.
DrupalBoot7::valid_root in lib/Drush/Boot/DrupalBoot7.php
This function determines if the specified path points to the root directory of a CMS that can be bootstrapped by the specific subclass that implements it.
DrupalBoot8::valid_root in lib/Drush/Boot/DrupalBoot8.php
This function determines if the specified path points to the root directory of a CMS that can be bootstrapped by the specific subclass that implements it.

File

lib/Drush/Boot/DrupalBoot.php, line 10

Namespace

Drush\Boot

Class

DrupalBoot

Code

function valid_root($path) {
}