silverstripe-cms/tests/php/Model/SiteTreeTest_ConflictedController.php
2020-04-19 16:18:01 +12:00

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