src/Twig/Node/ComponentNode.php
/**
   * Makes the data for the component available to it.
   *
   * @param \Namics\Terrific\Twig\TerrificCompilerInterface $terrificCompiler
   *   The Terrific Twig compiler.
   */
Makes the data for the component available to it.
@param \Namics\Terrific\Twig\TerrificCompilerInterface $terrificCompiler
The Terrific Twig compiler.
Makes the data for the component available to it . @param \ Namics \ Terrific \ Twig \ TerrificCompilerInterface $terrificCompiler The Terrific Twig compiler .
protected function createTerrificContext(TerrificCompilerInterface $terrificCompiler): void {
    $twigCompiler = $terrificCompiler->getTwigCompiler();
    $twigCompiler
      ->write('')
      ->raw(ContextProviderInterface::TERRIFIC_CONTEXT_VARIABLE . ' = $context;')
      ->raw("\n");
    $this->ctxProvider->compile(
      $twigCompiler,
      $this->getNode('component'),
      $this->getNode('data'),
      $this->getAttribute('only')
    );
  }
protected function createTerrificContext ( TerrificCompilerInterface $ terrificCompiler ) : void { $ twigCompiler = $ terrificCompiler -> getTwigCompiler ( ) ; $ twigCompiler -> write ( '' ) -> raw ( ContextProviderInterface :: TERRIFIC_CONTEXT_VARIABLE . ' = $context;' ) -> raw ( " \n " ) ; $ this -> ctxProvider -> compile ( $ twigCompiler , $ this -> getNode ( 'component' ) , $ this -> getNode ( 'data' ) , $ this -> getAttribute ( 'only' ) ) ; }
Makes the data for the component available to it.
Makes the data for the component available to it .