1 | <?php |
||
21 | abstract class AbstractTranslatableAdminExtension extends AdminExtension |
||
|
|||
22 | { |
||
23 | /** |
||
24 | * Request parameter. |
||
25 | */ |
||
26 | const TRANSLATABLE_LOCALE_PARAMETER = 'tl'; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $translatableLocale; |
||
32 | |||
33 | /** |
||
34 | * @var TranslatableChecker |
||
35 | */ |
||
36 | protected $translatableChecker; |
||
37 | |||
38 | /** |
||
39 | * @param TranslatableChecker $translatableChecker |
||
40 | */ |
||
41 | public function __construct(TranslatableChecker $translatableChecker) |
||
45 | |||
46 | /** |
||
47 | * @return ContainerInterface |
||
48 | */ |
||
49 | protected function getContainer(AdminInterface $admin) |
||
53 | |||
54 | /** |
||
55 | * Return the list of possible locales for your models. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function getTranslationLocales(AdminInterface $admin) |
||
63 | |||
64 | /** |
||
65 | * Return the default locale if url parameter is not present. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | protected function getDefaultTranslationLocale(AdminInterface $admin) |
||
73 | |||
74 | /** |
||
75 | * @param TranslatableChecker $translatableChecker |
||
76 | */ |
||
77 | public function setTranslatableChecker($translatableChecker) |
||
81 | |||
82 | /** |
||
83 | * @return TranslatableChecker |
||
84 | */ |
||
85 | public function getTranslatableChecker() |
||
89 | |||
90 | /** |
||
91 | * Return current translatable locale |
||
92 | * ie: the locale used to load object translations != current request locale. |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getTranslatableLocale(AdminInterface $admin) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function getPersistentParameters(AdminInterface $admin) |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function alterNewInstance(AdminInterface $admin, $object) |
||
127 | } |
||
128 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.