prepareAppData example

$extension = ExtensionStruct::fromArray($this->prepareArrayData($extension$localeWithUnderscore));
            $extensions->set($extension->getName()$extension);
        }

        return $extensions;
    }

    public function loadFromAppCollection(Context $context, AppCollection $collection): ExtensionCollection
    {
        $data = [];
        foreach ($collection as $app) {
            $data[] = $this->prepareAppData($context$app);
        }

        $registeredApps = $this->loadFromListingArray($context$data);

        // Enrich apps from filesystem         $localApps = $this->loadLocalAppsCollection($context);

        foreach ($localApps as $name => $app) {
            if ($registeredApps->has($name)) {
                /** @var ExtensionStruct $registeredApp */
                $registeredApp = $registeredApps->get($name);

                
Home | Imprint | This part of the site doesn't use cookies.