isGtcAcceptanceRequired example

try {
            $updates = $this->get('shopware_plugininstaller.plugin_service_view')->getUpdates($context);
        } catch (Exception $e) {
            $this->handleException($e);

            return;
        }

        $this->View()->assign([
            'success' => true,
            'data' => array_values($updates->getPlugins()),
            'loginRecommended' => empty($secret) && $updates->isGtcAcceptanceRequired(),
        ]);
    }

    /** * @return void */
    public function expiredListingAction()
    {
        $pluginInformationStructs = $this->container->get(PluginLicenceService::class)->getExpiredLicenses();
        $expiredPlugins = [];
        foreach ($pluginInformationStructs as $pluginInformationStruct) {
            
Home | Imprint | This part of the site doesn't use cookies.