public function getExtensionConfig()
    {
        if (!is_array($this->extensionConfig)) {
            $composerjson = $this->getComposerJSON();
            if (is_array($composerjson)) {
                $this->extensionConfig = [
                    strtolower($composerjson['name']) => [
                        'name' => $this->getName(),
                        'json' => $composerjson,
                    ],
                ];
            } else {
                $this->extensionConfig = [
                    $this->getName() => [
                        'name' => $this->getName(),
                        'json' => [],
                    ],
                ];
            }
        }

        return $this->extensionConfig;
    }
public function getExtensionConfig()
    {
        if (!is_array($this->extensionConfig)) {
            $composerjson = $this->getComposerJSON();
            if (is_array($composerjson)) {
                $this->extensionConfig = [
                    strtolower($composerjson['name']) => [
                        'name' => $this->getName(),
                        'json' => $composerjson,
                    ],
                ];
            } else {
                $this->extensionConfig = [
                    $this->getName() => [
                        'name' => $this->getName(),
                        'json' => [],
                    ],
                ];
            }
        }

        return $this->extensionConfig;
    }
public function getExtensionConfig ( ) { if ( ! is_array ( $ this -> extensionConfig ) ) { $ composerjson = $ this -> getComposerJSON ( ) ; if ( is_array ( $ composerjson ) ) { $ this -> extensionConfig = [ strtolower ( $ composerjson [ 'name' ] ) => [ 'name' => $ this -> getName ( ) , 'json' => $ composerjson , ] , ] ; } else { $ this -> extensionConfig = [ $ this -> getName ( ) => [ 'name' => $ this -> getName ( ) , 'json' => [ ] , ] , ] ; } } return $ this -> extensionConfig ; }
Builds an array suitable for conversion to JSON, which in turn will end
up in a consolidated JSON file containing the configurations of all
installed extensions.
Builds an array suitable for conversion to JSON which in turn will end up in a consolidated JSON file containing the configurations of all installed extensions .