EmbedShortcodeProvider
class EmbedShortcodeProvider implements ShortcodeHandler (View source)
Provider for the [embed] shortcode tag used by the embedding service in the HTML Editor field.
Provides the html needed for the frontend and the editor field itself.
Traits
Provides extensions to this object to integrate it with standard config API methods.
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
Embed shortcode parser from Oembed. This is a temporary workaround.
Details
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
static mixed
get_shortcodes()
Gets the list of shortcodes provided by this handler
static string
handle_shortcode(array $arguments, string $content, ShortcodeParser $parser, string $shortcode, array $extra = [])
Embed shortcode parser from Oembed. This is a temporary workaround.
Oembed class has been replaced with the Embed external service.
static string
embeddableToHtml(Embeddable $embeddable, array $arguments)
No description
static protected string
videoEmbed(array $arguments, string $content)
Build video embed tag
static protected string
linkEmbed(array $arguments, string $href, string $title)
Build embed tag
static protected string
photoEmbed(array $arguments, string $src)
Build img embed tag
static void
flushCachedShortcodes(ShortcodeParser $parser, string $content)
No description