Skip to content

Commit

Permalink
[DOCS] Fix rendering of Events in the docu
Browse files Browse the repository at this point in the history
Fixed the display of pseudocode to simple rest as these get
displayed in TYPO3 Explained. This resolves rendering
warnings and incorrect code display

Releases: main, 11.5
Resolves: #98305
Change-Id: Iafe32a55722ee0ad475f0f4b562aef548e47a7be
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75669
Tested-by: core-ci <typo3@b13.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Lina Wolf <112@linawolf.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Lina Wolf <112@linawolf.de>
  • Loading branch information
linawolf committed Sep 9, 2022
1 parent 9413a84 commit 71d0825
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function __construct(
}

/**
* A single command, e.g.:
* A single command, e.g.::
*
* 'upload' => [
* 'target' => '1:/some/folder/'
* 'data' => '1'
* ]
* 'upload' => [
* 'target' => '1:/some/folder/'
* 'data' => '1'
* ]
*
* @return array<string, array<string, mixed>>
*/
Expand Down
12 changes: 7 additions & 5 deletions typo3/sysext/frontend/Classes/Event/ModifyHrefLangTagsEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ public function getRequest(): ServerRequestInterface
}

/**
* Set the hreflangs. This should be an array in format:
* [
* 'en-US' => 'https://example.com',
* 'nl-NL' => 'https://example.com/nl'
* ]
* Set the hreflangs. This should be an array in format::
*
* [
* 'en-US' => 'https://example.com',
* 'nl-NL' => 'https://example.com/nl'
* ]
*
* @param array $hrefLangs
*/
public function setHrefLangs(array $hrefLangs): void
Expand Down

0 comments on commit 71d0825

Please sign in to comment.