src/Twig/Node/ComponentNode.php
/**
   * Adds the first expression (Component Identifier).
   *
   * And compiles the template loading logic.
   * IMPORTANT: Has to be executed after the Terrific context was created
   * (ComponentNode::createTerrificContext).
   *
   * @param \Namics\Terrific\Twig\TerrificCompilerInterface $terrificCompiler
   *   The Terrific Twig compiler.
   */
Adds the first expression (Component Identifier).
And compiles the template loading logic.
IMPORTANT: Has to be executed after the Terrific context was created
(ComponentNode::createTerrificContext).

@param \Namics\Terrific\Twig\TerrificCompilerInterface $terrificCompiler
The Terrific Twig compiler.
Adds the first expression ( Component Identifier ) . And compiles the template loading logic . IMPORTANT : Has to be executed after the Terrific context was created ( ComponentNode :: createTerrificContext ) . @param \ Namics \ Terrific \ Twig \ TerrificCompilerInterface $terrificCompiler The Terrific Twig compiler .
protected function addGetTemplate(TerrificCompilerInterface $terrificCompiler): void {
    $twigCompiler = $terrificCompiler->getTwigCompiler();
    $twigCompiler->write('$this->loadTemplate(');
    $this->compileComponentName($terrificCompiler);
    $terrificCompiler->compileConcatFileExtensionString();
    $twigCompiler
      ->raw(', ')
      ->repr($this->getTemplateName())
      ->raw(', ')
      ->repr($this->getTemplateLine())
      ->raw(')');
  }
protected function addGetTemplate ( TerrificCompilerInterface $ terrificCompiler ) : void { $ twigCompiler = $ terrificCompiler -> getTwigCompiler ( ) ; $ twigCompiler -> write ( '$this->loadTemplate(' ) ; $ this -> compileComponentName ( $ terrificCompiler ) ; $ terrificCompiler -> compileConcatFileExtensionString ( ) ; $ twigCompiler -> raw ( ', ' ) -> repr ( $ this -> getTemplateName ( ) ) -> raw ( ', ' ) -> repr ( $ this -> getTemplateLine ( ) ) -> raw ( ')' ) ; }
Adds the first expression (Component Identifier).
Adds the first expression ( Component Identifier ) .