mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Add base updateValidatorList method to DataExtension
This commit is contained in:
parent
b45a3561df
commit
f977f9734c
@ -5,6 +5,7 @@ namespace SilverStripe\ORM;
|
|||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Core\Extension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
|
use SilverStripe\Forms\ValidatorList;
|
||||||
use SilverStripe\ORM\Queries\SQLSelect;
|
use SilverStripe\ORM\Queries\SQLSelect;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
@ -133,6 +134,17 @@ abstract class DataExtension extends Extension
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function is used to provide modifications to the Validators used on a DataObject.
|
||||||
|
*
|
||||||
|
* Caution: Use {@link ValidatorList->addValidator()} to add Validators.
|
||||||
|
*
|
||||||
|
* @param ValidatorList $validatorList
|
||||||
|
*/
|
||||||
|
public function updateValidatorList(ValidatorList $validatorList): void
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to provide modifications to the form used
|
* This function is used to provide modifications to the form used
|
||||||
* for front end forms. {@link DataObject->getFrontEndFields()}
|
* for front end forms. {@link DataObject->getFrontEndFields()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user