ForkCMS\Bundle\InstallerBundle\Form\Type\ModulesType::finishView PHP Метод

finishView() публичный Метод

Make sure the required modules are checked and can't be desalbed
public finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView The FormView generated by Symfony
$form Symfony\Component\Form\FormInterface The form itself
$options array The array options
    public function finishView(FormView $view, FormInterface $form, array $options)
    {
        foreach ($view->children['modules']->children as $module) {
            if (in_array($module->vars['value'], ForkInstaller::getRequiredModules())) {
                $module->vars['attr']['disabled'] = 'disabled';
                $module->vars['checked'] = true;
            }
        }
    }