diff core/modules/media/src/IFrameMarkup.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/modules/media/src/IFrameMarkup.php	Thu Feb 28 13:11:55 2019 +0000
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\media;
+
+use Drupal\Component\Render\MarkupInterface;
+use Drupal\Component\Render\MarkupTrait;
+
+/**
+ * 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.
+ *
+ * @internal
+ *   This object is an internal part of the oEmbed system and should only be
+ *   used in \Drupal\media\Controller\OEmbedIframeController.
+ *
+ * @see \Drupal\media\Controller\OEmbedIframeController
+ */
+class IFrameMarkup implements MarkupInterface {
+  use MarkupTrait;
+
+}