mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated return types for createTag and describe in documentation
This commit is contained in:
parent
490fd01213
commit
047d256792
2
forms/FormField.php
Executable file → Normal file
2
forms/FormField.php
Executable file → Normal file
@ -555,6 +555,7 @@ HTML;
|
||||
/**
|
||||
* Construct and return HTML tag.
|
||||
*
|
||||
* @return string HTML tag
|
||||
* @todo Transform to static helper method.
|
||||
*/
|
||||
function createTag($tag, $attributes, $content = null) {
|
||||
@ -591,6 +592,7 @@ HTML;
|
||||
* Describe this field, provide help text for it.
|
||||
* The function returns this so it can be used like this:
|
||||
* $action = FormAction::create('submit', 'Submit')->describe("Send your changes to be approved")
|
||||
* @return string Description
|
||||
*/
|
||||
function describe($description) {
|
||||
$this->description = $description;
|
||||
|
Loading…
Reference in New Issue
Block a user