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