silverstripe-frameworktest/code/multitab-validation/SingleTabPage.php

26 lines
463 B
PHP
Raw Permalink Normal View History

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