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