Fractas\ShortcodableCodes\VimeoShortcode
Synopsis
class VimeoShortcode
extends ViewableData
{
- // members
- private static string $singular_name = 'Vimeo Shortcode';
- private static string $plural_name = 'Vimeo Shortcodes';
- // methods
- public mixed singular_name()
- public static string parse_shortcode()
- public Fieldlist getShortcodeFields()
- public string getShortcodePlaceHolder()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
private
- $plural_name
- $singular_name
Methods
public
- getShortcodeFields() — Returns a list of fields for editing the shortcode's attributes in the insert shortcode popup window.
- getShortcodePlaceHolder() — 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 VimeoShortcode a placeholder.
- parse_shortcode() — Parse the shortcode and render as a string, probably with a template.
- singular_name()