mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Marked Form::unsetFieldFromTab() as deprecated. Please use
Fields() and the FieldList API instead.
This commit is contained in:
parent
0b7af1ac17
commit
7fe0858be1
@ -672,8 +672,12 @@ class Form extends RequestHandler {
|
||||
|
||||
/**
|
||||
* Remove a field from the given tab.
|
||||
*
|
||||
* @deprecated 3.0 Use Fields() and FieldList API instead
|
||||
*/
|
||||
public function unsetFieldFromTab($tabName, $fieldName) {
|
||||
Deprecation::notice('3.0', 'Use Fields() and FieldList API instead');
|
||||
|
||||
// Find the tab
|
||||
$tab = $this->Fields()->findOrMakeTab($tabName);
|
||||
$tab->removeByName($fieldName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user