From 831b7d7ed7d88e6cb9c5b65481a9a32ddd70e6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 3 Oct 2015 15:48:43 +0200 Subject: [PATCH] expose the global label translator strategy Closes #2419 When people configure this, they probably want to do it on a global basis rather than for each of their admins. --- .../doc/reference/action_create_edit.rst | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Resources/doc/reference/action_create_edit.rst b/Resources/doc/reference/action_create_edit.rst index fa411344974..cd2e4b4e9f3 100644 --- a/Resources/doc/reference/action_create_edit.rst +++ b/Resources/doc/reference/action_create_edit.rst @@ -22,6 +22,26 @@ To do: - options available when adding fields, inc custom templates - link to the field_types document for more details about specific field types +Global options +~~~~~~~~~~~~~~ + +There are some options about create and edit actions you might want to set +globally rather than on an admin-by-admin basis. This can done with the bundle +configuration. + +.. code-block:: yaml + + sonata_admin: + options: + label_translator_strategy: sonata.admin.label.strategy.native + +``options.label_translator_strategy`` + Defaults to ``sonata.admin.label.strategy.native``. The value should be the + id of a service that implements + ``Sonata\AdminBundle\Translator\LabelTranslatorStrategyInterface``. For + more information, see + `the dedicated document `_ + FormGroup options ~~~~~~~~~~~~~~~~~