public function CompilerPluginInterface::compile in Compiler 1.0.x
Compile the provided source context and return the result.
Optional parameters are defined entirely by each concrete plugin implementation and should be written as distinct parameters on this method.
Officially-supported parameters will always be added to the context object.
Parameters
\Drupal\compiler\CompilerContextInterface $context: The source context which defines or configures the compilation.
Return value
mixed The result of compilation; an exception should be thrown instead of returning a result if an error state occurs within the compiler.
File
- src/
Plugin/ CompilerPluginInterface.php, line 34
Class
- CompilerPluginInterface
- An interface that all compiler plugins should use.
Namespace
Drupal\compiler\PluginCode
public function compile(CompilerContextInterface $context);