Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9c2aa48

Browse files
committed
Added reference for core admin extensions
1 parent a999710 commit 9c2aa48

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

reference/configuration/core.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,58 @@ only published routes and content can be accessed.
248248
'request_listener' => true,
249249
),
250250
));
251+
252+
Sonata Admin
253+
------------
254+
255+
This section configures each of the Sonata Admin extensions.
256+
257+
258+
.. configuration-block::
259+
260+
.. code-block:: yaml
261+
262+
sonata_admin:
263+
extensions:
264+
publishable:
265+
form_group: form.group_publish_workflow
266+
publish_time:
267+
form_group: form.group_general
268+
translatable:
269+
form_group: form.group_general
270+
271+
.. code-block:: xml
272+
273+
<sonata-admin>
274+
<extension>
275+
<publishable form-group="form.group_publish_workflow" />
276+
<publish-time form-group="form.group_general" />
277+
<translatable form-group="form.group_general" />
278+
</extension>
279+
</sonata-admin>
280+
281+
.. code-block:: php
282+
283+
$container->loadFromExtension('cmf_core', array(
284+
'sonata_admin' => array(
285+
'extensions' => array(
286+
'publishable' => array(
287+
'form_group' => 'form.group_publish_workflow',
288+
),
289+
'publish_time' => array(
290+
'form_group' => 'form.group_general',
291+
),
292+
'translatable' => array(
293+
'form_group' => 'form.group_general',
294+
),
295+
),
296+
),
297+
));
298+
299+
form_group
300+
~~~~~~~~~~
301+
302+
**type**: ``string`` **default**: as in above example.
303+
304+
Defines which form group the fields from this extension will appear in within
305+
the Sonata Admin edit interface.

0 commit comments

Comments
 (0)