silverstripe-comments/tests/Stubs/CommentableItemController.php

19 lines
351 B
PHP
Raw Permalink Normal View History

<?php
namespace SilverStripe\Comments\Tests\Stubs;
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
/**
* @package comments
* @subpackage tests
*/
class CommentableItemController extends Controller implements TestOnly
{
public function index()
{
return CommentableItem::get()->first()->CommentsForm();
}
}