You are here

private function DomainSourceServiceProvider::getDrupalVersion in Domain Access 8

Determines the Drupal version.

Return value

integer The core numberic version.

1 call to DomainSourceServiceProvider::getDrupalVersion()
DomainSourceServiceProvider::alter in domain_source/src/DomainSourceServiceProvider.php
Modifies existing service definitions.

File

domain_source/src/DomainSourceServiceProvider.php, line 32

Class

DomainSourceServiceProvider
Provides services for the domain module that extend core functionality.

Namespace

Drupal\domain_source

Code

private function getDrupalVersion() {
  return (int) substr(\Drupal::VERSION, 0, 1);
}