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.
Config options
attribute_whitelist | array | A whitelist of shortcode attributes which are allowed in the resultant markup. |
Properties
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
stat(string $name)
deprecated
deprecated
Get inherited config value
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
$this
set_stat(string $name, mixed $value)
deprecated
deprecated
Update the config value for a given property
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 string
embedForTemplate(Adapter $embed, array $arguments)
deprecated
deprecated
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