You are here

embed_test.module in Embed 8

File

tests/embed_test/embed_test.module
View source
<?php

/**
 * Implements hook_ENTITY_TYPE_view_alter().
 */
function embed_test_node_view_alter(array &$build) {

  // @see \Drupal\Tests\embed\Functional\EmbedPreviewTest::testPreview
  $build['#attached']['library'][] = 'core/jquery';
}

Functions