Shopware\PluginCreator\Services\TemplateFileProvider\Current\WidgetFileProvider::getFiles PHP Method

getFiles() public method

public getFiles ( Configuration $configuration, NameGenerator $nameGenerator )
$configuration Shopware\PluginCreator\Struct\Configuration
$nameGenerator Shopware\PluginCreator\Services\NameGenerator
    public function getFiles(Configuration $configuration, NameGenerator $nameGenerator)
    {
        if (!$configuration->hasWidget) {
            return [];
        }
        return [self::CURRENT_DIR . "Resources/views/backend/widget/main.tpl" => "Resources/views/backend/widgets/{$nameGenerator->under_score_js}.js", self::CURRENT_DIR . "Subscriber/BackendWidget.tpl" => "Subscriber/BackendWidget.php", self::CURRENT_DIR . "Resources/snippets/backend/widget/labels.tpl" => "Resources/snippets/backend/widget/labels.ini", self::CURRENT_DIR . "Controllers/BackendWidget.tpl" => "Controllers/Backend/{$nameGenerator->backendWidgetController}.php"];
    }
WidgetFileProvider