silverstripe-framework/tests/php/Control/RequestHandlingTest/SubclassedFormField.php

25 lines
545 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Control\Tests\RequestHandlingTest;
/**
* Form field for the test
*/
class SubclassedFormField extends TestFormField
{
private static $allowed_actions = array('customSomething');
2016-10-14 03:30:05 +02:00
// We have some url_handlers defined that override RequestHandlingTest_FormField handlers.
// We will confirm that the url_handlers inherit.
private static $url_handlers = array(
'something' => 'customSomething',
);
2016-10-14 03:30:05 +02:00
public function customSomething()
{
return "customSomething";
}
2016-10-14 03:30:05 +02:00
}