This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Move code-snippet creation to new tool [11.5] (#532)
* [TASK] Move code-snippet creation to new tool * [TASK] Move code-snippet creation to new tool (v 11.5) Move file so it aligns with main Co-authored-by: lina.wolf <[email protected]>
- Loading branch information
Showing
4 changed files
with
37 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Documentation/CodeSnippets/PhpDomain/ValidatorInterface.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. Generated by https://github.com/linawolf/t3docs_restructured_api_tools | ||
.. php:namespace:: TYPO3\CMS\Extbase\Validation\Validator | ||
.. php:interface:: ValidatorInterface | ||
Contract for a validator | ||
|
||
.. php:method:: validate(unknown value) | ||
Checks if the given value is valid according to the validator, and returns | ||
the Error Messages object which occurred. | ||
|
||
:param unknown $value: the value | ||
|
||
.. php:method:: getOptions() | ||
Returns the options of this validator which can be specified in the constructor |
44 changes: 0 additions & 44 deletions
44
Documentation/CodeSnippets/StyleguideCode/ValidatorInterface.rst.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
// https://github.com/TYPO3-Documentation/t3docs-codesnippets | ||
// ddev exec vendor/bin/typo3 restructured_api_tools:php_domain public/fileadmin/TYPO3CMS-Book-ExtbaseFluid/Documentation/CodeSnippets/ | ||
|
||
return [ | ||
[ | ||
"action"=> "createPhpClassDocs", | ||
"class"=> \TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, | ||
"targetFileName"=> "PhpDomain/ValidatorInterface.rst.txt", | ||
"withCode"=> false | ||
], | ||
]; |