silverstripe-framework/tests/php/ORM/DBHTMLTextTest/TestShortcode.php
2016-12-19 16:08:19 +13:00

20 lines
432 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DBHTMLTextTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\View\Parsers\ShortcodeHandler;
class TestShortcode implements ShortcodeHandler, TestOnly
{
public static function get_shortcodes()
{
return 'test';
}
public static function handle_shortcode($arguments, $content, $parser, $shortcode, $extra = array())
{
return 'shortcode content';
}
}