Skip to content

Commit

Permalink
prepend Twig form_themes config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Jun 15, 2023
1 parent 2520d44 commit 7533009
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public function prepend(ContainerBuilder $container): void
);
}
}

// add custom form widgets
if ($container->hasExtension('twig')) {
$container->prependExtensionConfig('twig', [
'form_themes' => ['@SonataForm/Form/datepicker.html.twig'],
]);
}
}

public function load(array $configs, ContainerBuilder $container): void
Expand Down

0 comments on commit 7533009

Please sign in to comment.