public function componentForced()
    {
        $function = function ($name = null, array $params = []) {

            if (is_null($name)) {
                return '';
            }
            $components = UIComponentsRegistry::get('ui-components', []);
            $component  = null;
            foreach ($components as $item) {
                if ($item->getSnakedName() === $name) {
                    $component = $item;
                    break;
                }
            }
            if (is_null($component)) {
                return '';
            }
            $this->gridStackAdapter->scripts();
            if (!empty($params)) {
                $component->setAttributes($params);
            }

            $classname = 'Antares\UI\UIComponents\Templates\Datatables';
            $view      = ($component instanceof $classname) ? 'antares/ui-components::admin.partials._forced_datatable' : 'antares/ui-components::admin.partials._forced';

            $component->setView($view);
            return $component;
        };

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