You are here

public function ThemeCompilerTargetContext::__construct in Theme Compiler 8

Constructs a ThemeCompilerTargetContext.

Parameters

string $compiler: The machine name of the compiler plugin to use.

string $theme: The machine name of the theme to which this context should belong.

string $target: The theme-relative file system path to use for the compiler target.

array $options: An array of compiler plugin target configuration options.

File

src/Plugin/ThemeCompilerTargetContext.php, line 50

Class

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

Namespace

Drupal\theme_compiler\Plugin

Code

public function __construct(string $compiler, string $theme, string $target, array $options) {
  $this->compiler = $compiler;
  $this->options = $options;
  $this->target = ltrim($target, '/');
  $this->theme = $theme;
}