Merge pull request #7816 from creative-commoners/pulls/4.0/setrighttitle-phpdoc

Update phpdoc for FormField::setRightTitle regarding escaped HTML
This commit is contained in:
Damian Mooyman 2018-01-31 16:48:17 +13:00 committed by GitHub
commit 11f4693648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -490,7 +490,7 @@ class FormField extends RequestHandler
* Gets the contextual label than can be used for additional field description.
* Can be shown to the right or under the field in question.
*
* @return string Contextual label text.
* @return string Contextual label text
*/
public function RightTitle()
{
@ -499,9 +499,8 @@ class FormField extends RequestHandler
/**
* Sets the right title for this formfield
* Note: This expects escaped HTML.
*
* @param string $rightTitle Escaped HTML for title
* @param string|DBField Plain text string, or a DBField with appropriately escaped HTML
* @return $this
*/
public function setRightTitle($rightTitle)