IFrameMarkup
class IFrameMarkup implements MarkupInterface (View source)
| internal | This object is an internal part of the oEmbed system and should only be used in \Drupal\media\Controller\OEmbedIframeController. |
Defines an object that wraps oEmbed markup for use in an iFrame.
This object is not constructed with a known safe string as the strings come from an external site. It must not be used outside the Media module's oEmbed iframe rendering.
Traits
Implements MarkupInterface and Countable for rendered objects.
Properties
| protected string | $string | The safe string. |
from MarkupTrait |
Methods
Creates a Markup object if necessary.
Returns a representation of the object for use in JSON serialization.
Details
static string|MarkupInterface
create(mixed $string)
Creates a Markup object if necessary.
If $string is equal to a blank string then it is not necessary to create a Markup object. If $string is an object that implements MarkupInterface it is returned unchanged.
string
__toString()
Returns the string version of the Markup object.
int
count()
Returns the string length.
string
jsonSerialize()
Returns a representation of the object for use in JSON serialization.