IFrameUrlHelper
class IFrameUrlHelper (View source)
| internal | This is an internal part of the oEmbed system and should only be used by oEmbed-related code in Drupal core. |
Providers helper functions for displaying oEmbed resources in an iFrame.
Properties
| protected RequestContext | $requestContext | The request context service. |
|
| protected PrivateKey | $privateKey | The private key service. |
Methods
string
getHash(string $url, int $max_width = NULL, int $max_height = NULL)
Hashes an oEmbed resource URL.
bool
isSecure(string $url)
Checks if an oEmbed URL can be securely displayed in an frame.
Details
__construct(RequestContext $request_context, PrivateKey $private_key)
IFrameUrlHelper constructor.
string
getHash(string $url, int $max_width = NULL, int $max_height = NULL)
Hashes an oEmbed resource URL.
bool
isSecure(string $url)
Checks if an oEmbed URL can be securely displayed in an frame.