core/modules/rdf/rdf.module | 2 -- core/modules/system/src/Tests/Common/RenderTest.php | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 4308e8e..20f9d38 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -367,9 +367,7 @@ function rdf_preprocess_user(&$variables) { 'lang' => '', ), ); - // @todo Convert once https://www.drupal.org/node/2346369 is in. $build['#attached']['html_head'][] = [$username_meta, 'rdf_user_username']; - drupal_render($build); } } } diff --git a/core/modules/system/src/Tests/Common/RenderTest.php b/core/modules/system/src/Tests/Common/RenderTest.php index 58330c1..15da0e5 100644 --- a/core/modules/system/src/Tests/Common/RenderTest.php +++ b/core/modules/system/src/Tests/Common/RenderTest.php @@ -1185,15 +1185,15 @@ protected function randomContextValue() { * Tests drupal_process_attached(). */ public function testDrupalProcessAttached() { - // Specify an invalid render array. + // Specify invalid attachments in a render array. $build['#attached']['library'][] = 'core/drupal.states'; $build['#attached']['drupal_process_states'][] = []; try { drupal_process_attached($build); - $this->fail("Invalid #attachmend 'drupal_process_states' allowed"); + $this->fail("Invalid #attachment 'drupal_process_states' allowed"); } catch (\Exception $e) { - $this->pass("Invalid #attachmend 'drupal_process_states' not allowed"); + $this->pass("Invalid #attachment 'drupal_process_states' not allowed"); } }