API Remove deprecated FormAction::createTag()

This commit is contained in:
Ingo Schommer 2017-05-08 21:05:11 +12:00 committed by Damian Mooyman
parent 75b7e19066
commit 1d438d3fb5
2 changed files with 2 additions and 17 deletions

View File

@ -1318,7 +1318,8 @@ A very small number of methods were chosen for deprecation, and will be removed
* `LimitWordCountXML` is removed. Use `LimitWordCount` instead.
* `BigSummary` is removed. Use `Summary` instead.
* Most limit methods on `DBHTMLText` now plain text rather than attempt to manipulate the underlying HTML.
* `FormField::Title` and `FormField::RightTitle` are now cast as plain text by default (but can be overridden).
* `FormField::Title` and `FormField::RightTitle` are now cast as plain text by default (but can be overridden).
* `FormField#createTag()` has been renamed to `FormField::create_tag()`
* `Hierarchy` class has had much of it's functionality refactored out into `MarkedSet`:
* `isMarked`
* `isTreeOpened`

View File

@ -1260,22 +1260,6 @@ class FormField extends RequestHandler
return strtolower(preg_replace('/Field$/', '', $type->getShortName()));
}
/**
* @deprecated 4.0 Use FormField::create_tag()
*
* @param string $tag
* @param array $attributes
* @param null|string $content
*
* @return string
*/
public function createTag($tag, $attributes, $content = null)
{
Deprecation::notice('4.0', 'Use FormField::create_tag()');
return self::create_tag($tag, $attributes, $content);
}
/**
* Abstract method each {@link FormField} subclass must implement, determines whether the field
* is valid or not based on the value.