mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
402 B
PHP
20 lines
402 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';
|
||
|
}
|
||
|
}
|