Drupal::VERSION

The current system version. File core/lib/Drupal.php, line 84 Contains \Drupal. Class Drupal Static Service Container wrapper. Code const VERSION = '8.2.2-dev';

Drupal::urlGenerator

public static Drupal::urlGenerator() Returns the url generator service. Return value \Drupal\Core\Routing\UrlGeneratorInterface The url generator service. File core/lib/Drupal.php, line 504 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function urlGenerator() { return static::getContainer()->get('url_generator'); }

Drupal::url

public static Drupal::url($route_name, $route_parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) Generates a URL string for a specific route based on the given parameters. This method is a convenience wrapper for generating URL strings for URLs that have Drupal routes (that is, most pages generated by Drupal) using the \Drupal\Core\Url object. See \Drupal\Core\Url::fromRoute() for detailed documentation. For non-routed local URIs relative to the base path (like robo

Drupal::unsetContainer

public static Drupal::unsetContainer() Unsets the global container. File core/lib/Drupal.php, line 116 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function unsetContainer() { static::$container = NULL; }

Drupal::typedDataManager

public static Drupal::typedDataManager() Returns the typed data manager service. Use the typed data manager service for creating typed data objects. Return value \Drupal\Core\TypedData\TypedDataManagerInterface The typed data manager. See also \Drupal\Core\TypedData\TypedDataManager::create() File core/lib/Drupal.php, line 484 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function typedDataManager() { return static::getContainer()->get('typed_d

Drupal::transliteration

public static Drupal::transliteration() Returns the transliteration service. Return value \Drupal\Core\Transliteration\PhpTransliteration The transliteration manager. File core/lib/Drupal.php, line 628 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function transliteration() { return static::getContainer()->get('transliteration'); }

Drupal::translation

public static Drupal::translation() Returns the string translation service. Return value \Drupal\Core\StringTranslation\TranslationManager The string translation manager. File core/lib/Drupal.php, line 591 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function translation() { return static::getContainer()->get('string_translation'); }

Drupal::token

public static Drupal::token() Returns the token service. Return value \Drupal\Core\Utility\Token The token service. File core/lib/Drupal.php, line 494 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function token() { return static::getContainer()->get('token'); }

Drupal::theme

public static Drupal::theme() Gets the theme service. Return value \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal.php, line 647 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function theme() { return static::getContainer()->get('theme.manager'); }

Drupal::state

public static Drupal::state() Returns the state storage service. Use this to store machine-generated data, local to a specific environment that does not need deploying and does not need human editing; for example, the last time cron was run. Data which needs to be edited by humans and needs to be the same across development, production, etc. environments (for example, the system maintenance message) should use \Drupal::config() instead. Return value \Drupal\Core\State\StateInterface File core/