Add base updateValidatorList method to DataExtension

This commit is contained in:
cpenny 2020-02-17 07:26:40 +13:00
parent b45a3561df
commit f977f9734c

View File

@ -5,6 +5,7 @@ namespace SilverStripe\ORM;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\ValidatorList;
use SilverStripe\ORM\Queries\SQLSelect;
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
* for front end forms. {@link DataObject->getFrontEndFields()}