public function compile($stub, $modelName, $modelData, stdClass $scaffolderConfig, $hash, ScaffolderThemeExtensionInterface $themeExtension, array $extensions, $extra = null)
    {
        $this->stub = $stub;

        return $this->setPageTitle($scaffolderConfig)
            ->setAppName($scaffolderConfig)
            ->setLinks($extra['links'], $scaffolderConfig)
            ->replaceRoutePrefix($scaffolderConfig->routing->prefix)
            ->store($modelName, $scaffolderConfig, $themeExtension->runAfterPageLayoutIsCompiled($this->stub, $scaffolderConfig), new FileToCompile(null, null));
    }
public function compile($stub, $modelName, $modelData, stdClass $scaffolderConfig, $hash, ScaffolderThemeExtensionInterface $themeExtension, array $extensions, $extra = null)
    {
        $this->stub = $stub;

        return $this->setPageTitle($scaffolderConfig)
            ->setAppName($scaffolderConfig)
            ->setLinks($extra['links'], $scaffolderConfig)
            ->replaceRoutePrefix($scaffolderConfig->routing->prefix)
            ->store($modelName, $scaffolderConfig, $themeExtension->runAfterPageLayoutIsCompiled($this->stub, $scaffolderConfig), new FileToCompile(null, null));
    }
public function compile ( $ stub , $ modelName , $ modelData , stdClass $ scaffolderConfig , $ hash , ScaffolderThemeExtensionInterface $ themeExtension , array $ extensions , $ extra = null ) { $ this -> stub = $ stub ; return $ this -> setPageTitle ( $ scaffolderConfig ) -> setAppName ( $ scaffolderConfig ) -> setLinks ( $ extra [ 'links' ] , $ scaffolderConfig ) -> replaceRoutePrefix ( $ scaffolderConfig -> routing -> prefix ) -> store ( $ modelName , $ scaffolderConfig , $ themeExtension -> runAfterPageLayoutIsCompiled ( $ this -> stub , $ scaffolderConfig ) , new FileToCompile ( null , null ) ) ; }
Compiles the page layout.

@param $stub
@param $modelName
@param $modelData
@param \stdClass $scaffolderConfig
@param $hash
@param \Scaffolder\Support\Contracts\ScaffolderThemeExtensionInterface $themeExtension
@param \Scaffolder\Support\Contracts\ScaffolderExtensionInterface[] $extensions
@param null $extra

@return string
Compiles the page layout .