diff --git a/core/modules/node/lib/Drupal/node/NodeFormController.php b/core/modules/node/lib/Drupal/node/NodeFormController.php index af7d354..d1b32dc 100644 --- a/core/modules/node/lib/Drupal/node/NodeFormController.php +++ b/core/modules/node/lib/Drupal/node/NodeFormController.php @@ -274,7 +274,7 @@ public function form(array $form, array &$form_state, EntityInterface $node) { return parent::form($form, $form_state, $node); } - /* + /** * Overrides Drupal\Core\Entity\EntityFormController::actions(). */ protected function actions(array $form, array &$form_state) { diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php index d3a090f..1faf6d8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php @@ -164,7 +164,7 @@ function testLinks() { $expected_links = ''; $expected_links .= ''; @@ -185,6 +185,22 @@ function testLinks() { $expected_heading = '

Links heading

'; $expected = $expected_heading . $expected_links; $this->assertThemeOutput('links', $variables, $expected); + + // Verify that passing attributes for the links work. + $variables['links']['a link']['attributes'] = array( + 'class' => array('a/class'), + ); + $variables['links']['plain text']['attributes'] = array( + 'class' => array('a/class'), + ); + $expected_links = ''; + $expected_links .= ''; + $expected = $expected_heading . $expected_links; + $this->assertThemeOutput('links', $variables, $expected); } /**