[TASK] Update 8.6 Documentation
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 8.6 / Feature-79124-AllowOverwritingOfTemplatePathsInBackendTemplateView.rst
index 59d4101..55a1934 100644 (file)
@@ -11,6 +11,7 @@ Description
 
 BackendTemplateView now allows overwriting of template paths to add your own locations for templates, partials and layouts in a BackendTemplateView based backend module.
 
+
 Impact
 ======
 
@@ -18,16 +19,15 @@ You can now do for example
 
 .. code-block:: php
 
-       $frameworkConfiguration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
-       $viewConfiguration = [
-          'view' => [
-              'templateRootPaths' => ['EXT:myext/Resources/Private/Backend/Templates'],
-              'partialRootPaths' => ['EXT:myext/Resources/Private/Backend/Partials'],
-              'layoutRootPaths' => ['EXT:myext/Resources/Private/Backend/Layouts'],
-          ],
-       ];
-       $this->configurationManager->setConfiguration(array_merge($frameworkConfiguration, $viewConfiguration));
-
+   $frameworkConfiguration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
+   $viewConfiguration = [
+      'view' => [
+         'templateRootPaths' => ['EXT:myext/Resources/Private/Backend/Templates'],
+         'partialRootPaths' => ['EXT:myext/Resources/Private/Backend/Partials'],
+         'layoutRootPaths' => ['EXT:myext/Resources/Private/Backend/Layouts'],
+      ],
+   ];
+   $this->configurationManager->setConfiguration(array_merge($frameworkConfiguration, $viewConfiguration));
 
 
 .. index:: Backend, PHP-API