function Boot::valid_root

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

1 method overrides Boot::valid_root()
BaseBoot::valid_root in lib/Drush/Boot/BaseBoot.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/Boot.php, line 25

Namespace

Drush\Boot

Class

Boot
Defines the interface for a Boot classes. Any CMS that wishes to work with Drush should extend BaseBoot. If the CMS has a Drupal-Compatibility layer, then it should extend DrupalBoot.

Code

function valid_root($path);