silverstripe-frameworktest/code/multitab-validation/SingleTabPage.php
2021-02-25 23:51:25 +13:00

26 lines
463 B
PHP

<?php
namespace SilverStripe\FrameworkTest\Model;
use Page;
use SilverStripe\Forms\RequiredFields;
if (!class_exists(Page::class)) {
return;
}
/**
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
*/
class SingleTabPage extends Page
{
private static $table_name = 'SingleTabPage';
public function getCMSValidator()
{
return new RequiredFields([
'Content'
]);
}
}