mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
21 lines
428 B
PHP
21 lines
428 B
PHP
|
<?php
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
|
||
|
class SiteTreeTest_ConflictedController extends PageController implements TestOnly
|
||
|
{
|
||
|
|
||
|
private static $allowed_actions = array(
|
||
|
'conflicted-action'
|
||
|
);
|
||
|
|
||
|
public function hasActionTemplate($template)
|
||
|
{
|
||
|
if ($template == 'conflicted-template') {
|
||
|
return true;
|
||
|
} else {
|
||
|
return parent::hasActionTemplate($template);
|
||
|
}
|
||
|
}
|
||
|
}
|