function DrupalBoot::get_version

8.0.x DrupalBoot.php DrupalBoot::get_version($drupal_root)
master DrupalBoot.php DrupalBoot::get_version($drupal_root)

Given a site root directory, determine the exact version of the software.

Parameters

string $root: The full path to the site installation, with no trailing slash.

Return value

string|NULL The version string for the current version of the software, e.g. 8.1.3

Overrides BaseBoot::get_version

3 methods override DrupalBoot::get_version()
DrupalBoot6::get_version in lib/Drush/Boot/DrupalBoot6.php
Given a site root directory, determine the exact version of the software.
DrupalBoot7::get_version in lib/Drush/Boot/DrupalBoot7.php
Given a site root directory, determine the exact version of the software.
DrupalBoot8::get_version in lib/Drush/Boot/DrupalBoot8.php
Given a site root directory, determine the exact version of the software.

File

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

Namespace

Drush\Boot

Class

DrupalBoot

Code

function get_version($drupal_root) {
}