Skip to content

Commit 5933746

Browse files
authored
[TASK] update code snippets (#6001)
Releases: main
1 parent 190c285 commit 5933746

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

Documentation/ApiOverview/Backend/_UriBuilder/_LinksAction.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'returnUrl' => $returnUrl,
4141
],
4242
);
43-
return $view->renderResponse();
43+
return $view->renderResponse('Module/Links');
4444
}
4545
4646
private function getEditPageLink(int $uid, string $returnUrl): UriInterface

Documentation/CodeSnippets/Events/Backend/ModifyNewContentElementWizardItemsEvent.rst.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@
5656
:returns: `int`
5757

5858
Provides information about the element to position the new element after (uid) or into (pid).
59+
60+
.. php:method:: getRequest()
61+
:returns: `\Psr\Http\Message\ServerRequestInterface`
62+
63+
Provides the request in the state it was provided to the NewContentElementController::wizardAction() method.

Documentation/CodeSnippets/Examples/Http/MeowInformationRequester.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@
4949
if ($response->getStatusCode() !== 200) {
5050
throw new \RuntimeException(
5151
'Returned status code is ' . $response->getStatusCode(),
52+
4696129526,
5253
);
5354
}
5455
5556
if ($response->getHeaderLine('Content-Type') !== 'application/json') {
5657
throw new \RuntimeException(
5758
'The request did not return JSON data',
59+
2722965511,
5860
);
5961
}
6062
// Get the content as a string on a successful request

Documentation/CodeSnippets/FlexForms/Examples/PluginHaikuListRegistration.rst.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,5 @@
3131
'plugins',
3232
'LLL:EXT:examples/Resources/Private/Language/PluginHaiku/locallang_db.xlf:list.description',
3333
),
34-
'CType',
35-
'examples',
36-
);
37-
38-
ExtensionManagementUtility::addToAllTCAtypes(
39-
'tt_content',
40-
'--div--;Configuration,pi_flexform,',
41-
$pluginSignature,
42-
'after:subheader',
43-
);
44-
45-
ExtensionManagementUtility::addPiFlexFormValue(
46-
'*',
4734
'FILE:EXT:examples/Configuration/Flexforms/PluginHaikuList.xml',
48-
$pluginSignature,
4935
);

Documentation/ExtensionArchitecture/HowTo/BackendModule/_ModuleConfiguration/_AdminModuleControllerSetUpDocHeader.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
->setHref($uriBuilderPath)
2222
->setTitle('A Title')
2323
->setShowLabelText(true)
24-
->setIcon($this->iconFactory->getIcon('actions-extension-import', IconSize::SMALL->value));
24+
->setIcon($this->iconFactory->getIcon('actions-extension-import', IconSize::SMALL));
2525
$buttonBar->addButton($list, ButtonBar::BUTTON_POSITION_LEFT, 1);
2626
}
2727
}

0 commit comments

Comments
 (0)