You are here

constant BOOTSTRAP_VERSION_MAJOR in Express 8

The current supported Bootstrap framework major version number.

// Before.
echo BOOTSTRAP_VERSION_MAJOR;

// After.
use Drupal\bootstrap\Bootstrap;
echo substr(Bootstrap::FRAMEWORK_VERSION, 0, 1);

Deprecated

Will be removed in a future release.

See also

\Drupal\bootstrap\Bootstrap::FRAMEWORK_VERSION

File

themes/contrib/bootstrap/deprecated.php, line 47
This contains deprecated functions that will be removed in a future release.

Code

define('BOOTSTRAP_VERSION_MAJOR', substr(Bootstrap::FRAMEWORK_VERSION, 0, 1));