Source of file ShortcodeableInterface.php
Size: 1,199 Bytes - Last Modified: 2021-12-24T07:09:59+00:00
/var/www/docs.ssmods.com/process/src/src/ShortcodeableInterface.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace SLONline\CallToActions; use SilverStripe\View\Parsers\ShortcodeParser; interface ShortcodeableInterface { /** * Parse the shortcode and render as a string, probably with a template * * @param array $attributes the list of attributes of the shortcode * @param string $content the shortcode content * @param ShortcodeParser $parser the ShortcodeParser instance * @param string $shortcode the raw shortcode being parsed * * @return string **/ public static function parse_shortcode($attributes, $content, $parser, $shortcode): string; /** * Returns a link to an image to be displayed as a placeholder in the editor * In this example we make easy work of this task by using the placehold.it service * But you could also return a link to an image in the filesystem - perharps the first * image in this ImageGallery * a placeholder * * @param array $attributes the list of attributes of the shortcode * * @return string **/ public function getCallToActionPlaceHolder($attributes): string; public function singular_name(); } |