mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 08:14:24 +00:00
remove trailing dumps
This commit is contained in:
parent
674629e2bf
commit
9db43f1de3
@ -16,11 +16,11 @@ class ConfidentialFilter implements FilterInterface
|
||||
'is not confidential' => false,
|
||||
'is confidential' => true,
|
||||
];
|
||||
|
||||
|
||||
private CONST DEFAULT_CHOICE = false;
|
||||
|
||||
|
||||
private TranslatorInterface $translator;
|
||||
|
||||
|
||||
public function __construct(TranslatorInterface $translator)
|
||||
{
|
||||
$this->translator = $translator;
|
||||
@ -44,14 +44,14 @@ class ConfidentialFilter implements FilterInterface
|
||||
|
||||
public function describeAction($data, $format = 'string'): array
|
||||
{
|
||||
dump($data, self::CHOICES);
|
||||
//dump($data, self::CHOICES);
|
||||
|
||||
foreach (self::CHOICES as $k => $v) {
|
||||
if ($v === $data['accepted_confidentials']) {
|
||||
$choice = $k;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return [
|
||||
'Filtered by confidential: only %confidential%', [
|
||||
'%confidential%' => $this->translator->trans($choice)
|
||||
@ -84,4 +84,4 @@ class ConfidentialFilter implements FilterInterface
|
||||
return Declarations::ACP_TYPE;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ class SocialWorkTypeFilter implements FilterInterface
|
||||
|
||||
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($refreshGoals) {
|
||||
$data = $event->getData();
|
||||
dump($data);
|
||||
//dump($data);
|
||||
|
||||
$refreshGoals($event->getForm(), $data);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user