You are here

public function ThemeCompilerTargetContext::getThemeUriPrefix in Theme Compiler 8

Get the Uniform Resource Identifier path prefix for this context's theme.

The output of this method is used to build Drupal route paths to files within this context's theme.

Return value

string The Uniform Resource Identifier path prefix for this context's theme.

1 call to ThemeCompilerTargetContext::getThemeUriPrefix()
ThemeCompilerTargetContext::getTargetUri in src/Plugin/ThemeCompilerTargetContext.php
Get the Uniform Resource Identifier path for this context's theme target.

File

src/Plugin/ThemeCompilerTargetContext.php, line 101

Class

ThemeCompilerTargetContext
The context used to define common interface parameters for a theme compiler.

Namespace

Drupal\theme_compiler\Plugin

Code

public function getThemeUriPrefix() {
  return '/' . drupal_get_path('theme', $this->theme);
}