You are here

function embed_test_node_view_alter in Embed 8

Implements hook_ENTITY_TYPE_view_alter().

File

tests/embed_test/embed_test.module, line 6

Code

function embed_test_node_view_alter(array &$build) {

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