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 not confidential' => false,
|
||||||
'is confidential' => true,
|
'is confidential' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
private CONST DEFAULT_CHOICE = false;
|
private CONST DEFAULT_CHOICE = false;
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
private TranslatorInterface $translator;
|
||||||
|
|
||||||
public function __construct(TranslatorInterface $translator)
|
public function __construct(TranslatorInterface $translator)
|
||||||
{
|
{
|
||||||
$this->translator = $translator;
|
$this->translator = $translator;
|
||||||
@ -44,14 +44,14 @@ class ConfidentialFilter implements FilterInterface
|
|||||||
|
|
||||||
public function describeAction($data, $format = 'string'): array
|
public function describeAction($data, $format = 'string'): array
|
||||||
{
|
{
|
||||||
dump($data, self::CHOICES);
|
//dump($data, self::CHOICES);
|
||||||
|
|
||||||
foreach (self::CHOICES as $k => $v) {
|
foreach (self::CHOICES as $k => $v) {
|
||||||
if ($v === $data['accepted_confidentials']) {
|
if ($v === $data['accepted_confidentials']) {
|
||||||
$choice = $k;
|
$choice = $k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'Filtered by confidential: only %confidential%', [
|
'Filtered by confidential: only %confidential%', [
|
||||||
'%confidential%' => $this->translator->trans($choice)
|
'%confidential%' => $this->translator->trans($choice)
|
||||||
@ -84,4 +84,4 @@ class ConfidentialFilter implements FilterInterface
|
|||||||
return Declarations::ACP_TYPE;
|
return Declarations::ACP_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ class SocialWorkTypeFilter implements FilterInterface
|
|||||||
|
|
||||||
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($refreshGoals) {
|
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($refreshGoals) {
|
||||||
$data = $event->getData();
|
$data = $event->getData();
|
||||||
dump($data);
|
//dump($data);
|
||||||
|
|
||||||
$refreshGoals($event->getForm(), $data);
|
$refreshGoals($event->getForm(), $data);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user