Skip to content

Commit

Permalink
expose the global label translator strategy
Browse files Browse the repository at this point in the history
Closes #2419
When people configure this, they probably want to do it on a global
basis rather than for each of their admins.
  • Loading branch information
greg0ire committed Oct 3, 2015
1 parent 05eb4ca commit 831b7d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Resources/doc/reference/action_create_edit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reference/label_translator_strategy.rst>`_

FormGroup options
~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 831b7d7

Please sign in to comment.