silverstripe-cms/tests/php/Model/SiteTreeTest_ConflictedController.php
2022-08-25 10:17:41 +12:00

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);
}
}
}