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