for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Settings;
use Chamilo\CoreBundle\Form\Type\YesNoType;
use Sylius\Bundle\SettingsBundle\Schema\SettingsBuilderInterface;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Class LearningPathSettingsSchema.
*
* @package Chamilo\CoreBundle\Settings
*/
class LearningPathSettingsSchema extends AbstractSettingsSchema
{
* {@inheritdoc}
public function buildSettings(SettingsBuilderInterface $builder)
$builder
->setDefaults(
[
'fixed_encoding' => 'false',
'show_invisible_exercise_in_lp_toc' => 'false'
]
);
$allowedTypes = [
'fixed_encoding' => ['string'],
];
$this->setMultipleAllowedTypes($allowedTypes, $builder);
}
public function buildForm(FormBuilderInterface $builder)
->add('fixed_encoding', YesNoType::class)
->add('show_invisible_exercise_in_lp_toc', YesNoType::class)
;