silverstripe-framework/tests/php/ORM/DBHTMLTextTest/TestShortcode.php

20 lines
427 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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';
}
2016-10-14 03:30:05 +02:00
public static function handle_shortcode($arguments, $content, $parser, $shortcode, $extra = [])
{
return 'shortcode content';
}
2016-10-14 03:30:05 +02:00
}