public function Path::getSystemPath in Bamboo Twig 8.2
Same name and namespace in other branches
- 8.5 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath()
- 8.3 bamboo_twig_path/src/TwigExtension/Path.php \Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath()
- 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\TwigExtensionCode
public function getSystemPath($type, $name = NULL) {
return drupal_get_path($type, $name);
}