X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fwoot.post_update.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fwoot.post_update.php;h=e9e3b0284c00286e05aa2e8e6e4cbb20033c8125;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/woot.post_update.php b/vendor/drush/drush/tests/resources/modules/d8/woot/woot.post_update.php new file mode 100644 index 000000000..e9e3b0284 --- /dev/null +++ b/vendor/drush/drush/tests/resources/modules/d8/woot/woot.post_update.php @@ -0,0 +1,42 @@ +install(['devel']); +} + +/** + * Renders some content. + */ +function woot_post_update_render() +{ + // This post-update function allows us to test that all Drupal modules are + // fully loaded when the updates are being performed. The renderer will + // throw an exception if this is not the case. + $render_array = [ + '#theme' => 'item_list', + '#items' => ['a', 'b'], + ]; + \Drupal::service('renderer')->renderPlain($render_array); +}