silverstripe-cms/tests/php/Model/SiteTreeTest_ConflictedController.php
2017-08-09 16:58:07 +12:00

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