getID() === null; $builder->add('is_full', CheckboxType::class, ['required' => false, 'label' => 'is_full.label', 'help' => 'is_full.help', 'label_attr'=> ['class' => 'checkbox-custom'], 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity)]); } }