[BUGFIX] Fix RST rendering in Documentation file 94/60694/3
authorBenni Mack <benni@typo3.org>
Tue, 7 May 2019 09:30:37 +0000 (11:30 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 7 May 2019 09:39:21 +0000 (11:39 +0200)
Due to some encoding issue, documentation
of the new feature for slug TCA hooks
is broken.

The patch adapts the RST file.

Resolves: #88289
Related: #88198
Releases: master, 9.5
Change-Id: I8e9027aba14678d678751246380833fce8a0e07b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60694
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Documentation/Changelog/9.5.x/Feature-88198-TCA-basedSlugModifiersForExtensions.rst

index b7ebc42..ba2cefb 100644 (file)
@@ -15,14 +15,14 @@ Hooks can be registered via
 
 .. code-block:: php
 
-   $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['generatorOptions']['postModifiers'][] = My\Class->method;
+    $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['generatorOptions']['postModifiers'][] = My\Class::class . '->method';
 
 in `EXT:myextension/Configuration/TCA/Overrides/table.php`, where $tableName can be a table like `pages` and
 `$fieldName` matches the slug field name, e.g. `slug`.
 
 .. code-block:: php
 
-   $GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers'][] = My\Class->modifySlug;
+    $GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions']['postModifiers'][] = My\Class::class . '->modifySlug';
 
 The method then receives an parameter array with the following values:
 
@@ -49,4 +49,4 @@ Any extension now allows to modify a specific slug, for instance only for a spec
 
 It is also possible for extensions to implement custom functionality like "Do not include in slug generation" as known from RealURL.
 
-.. index:: TCA
\ No newline at end of file
+.. index:: TCA