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