You are here

public function TestController::testPageWithOembed in Tome 8

Outputs a more page with oembed.

1 string reference to 'TestController::testPageWithOembed'
tome_test.routing.yml in modules/tome_static/tests/modules/tome_test/tome_test.routing.yml
modules/tome_static/tests/modules/tome_test/tome_test.routing.yml

File

modules/tome_static/tests/modules/tome_test/src/Controller/TestController.php, line 67

Class

TestController
Contains test pages for the tome module.

Namespace

Drupal\tome_test\Controller

Code

public function testPageWithOembed() {
  return [
    '#markup' => '<iframe src=\'/media/oembed?url=https%3A//www.youtube.com/watch%3Fv%3Duqmq5FBP_T0&amp;max_width=0&amp;max_height=0&amp;hash=ON_e21QvgL9euuUSW2TP_s1x62ZmFzzZNuIHbsQpXNg\'></iframe>',
    '#allowed_tags' => [
      'iframe',
    ],
  ];
}