Aimeos\Shop\Controller\ExtadmController::getJsonClientConfig PHP Method

getJsonClientConfig() protected method

Returns the JSON encoded configuration for the ExtJS client.
protected getJsonClientConfig ( Aimeos\MShop\Context\Item\Iface $context ) : string
$context Aimeos\MShop\Context\Item\Iface Context item object
return string JSON encoded configuration object
    protected function getJsonClientConfig(\Aimeos\MShop\Context\Item\Iface $context)
    {
        $config = $context->getConfig()->get('admin/extjs', array());
        return json_encode(array('admin' => array('extjs' => $config)), JSON_FORCE_OBJECT);
    }