You are here

public function Path::getSystemPath in Bamboo Twig 8.3

Same name and namespace in other branches
  1. 8.5 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath()
  2. 8.2 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath()
  3. 8.4 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath()

Returns the path to a system item (module, theme, etc.).

Parameters

string $type: The type of the item; one of 'core', 'profile', 'module', 'theme', or 'theme_engine'.

string $name: The name of the item for which the path is requested. Ignored for $type 'core'.

Return value

string The path to the requested item or an empty string if the item is not found.

File

bamboo_twig_path/src/TwigExtension/Path.php, line 40

Class

Path
Provides a 'Path' Twig Extensions.

Namespace

Drupal\bamboo_twig_path\TwigExtension

Code

public function getSystemPath($type, $name = NULL) {
  return drupal_get_path($type, $name);
}