You are here

public function ThemeCompilerTargetContext::getTargetId in Theme Compiler 8

Compute a hash of the target for canonical identification purposes.

Return value

string An identifier for the target of this context.

File

src/Plugin/ThemeCompilerTargetContext.php, line 121

Class

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

Namespace

Drupal\theme_compiler\Plugin

Code

public function getTargetId() {
  return hash('sha256', $this
    ->getTargetUri());
}