protected function contentParams()
    {

        $function = function ($name = 'ui-components') {
            try {
                $dimension  = $this->getCurrentContentDimension();
                $repository = app('ui-components');
                $config     = app('config')->get('antares/ui-components::content');
                $attributes = $repository->findOne($config['attributes'], uri());
                if (!isset($attributes['width']) && !isset($attributes['height'])) {
                    $attributes = array_merge($attributes, $dimension);
                }
                $defaultHeight        = array_get($attributes, 'default_height', array_get($config, 'attributes.default_height'));
                $defaultWidth         = array_get($attributes, 'default_width', array_get($config, 'attributes.default_width'));
                $attributes['height'] = !isset($attributes['height']) ? $defaultHeight : $attributes['height'];
                $attributes['width']  = !isset($attributes['width']) ? $defaultWidth : $attributes['width'];
                return array_merge(array_get($config, 'attributes'), $attributes);
            } catch (Exception $e) {
                Log::emergency($e);
                return false;
            }
        };

        return new Twig_SimpleFunction(
                'content_params', $function
        );
    }