function EmptyBoot::valid_root

8.0.x EmptyBoot.php EmptyBoot::valid_root($path)
7.x EmptyBoot.php EmptyBoot::valid_root($path)
master EmptyBoot.php EmptyBoot::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

File

lib/Drush/Boot/EmptyBoot.php, line 17

Namespace

Drush\Boot

Class

EmptyBoot
This is a do-nothing 'Boot' class that is used when there is no site at --root, or when no root is specified.

Code

function valid_root($path) {
  return FALSE;
}