diff --git a/core/modules/entity/src/Tests/EntityDisplayTest.php b/core/modules/entity/src/Tests/EntityDisplayTest.php index bc518ba..d76d603 100644 --- a/core/modules/entity/src/Tests/EntityDisplayTest.php +++ b/core/modules/entity/src/Tests/EntityDisplayTest.php @@ -288,22 +288,19 @@ public function testRenameDeleteBundle() { $this->assertEqual('article_rename', $new_form_display->bundle); $this->assertEqual('node.article_rename.default', $new_form_display->id); - $expected_view_dependencies = array( - 'entity' => array('field.instance.node.article_rename.body', 'node.type.article_rename'), - 'module' => array('text', 'user') - );$expected_form_dependencies = array( + $expected_dependencies = array( 'entity' => array('field.instance.node.article_rename.body', 'node.type.article_rename'), 'module' => array('text') ); // Check that the display has dependencies on the bundle, fields and the // modules that provide the formatters. $dependencies = $new_display->calculateDependencies(); - $this->assertEqual($expected_view_dependencies, $dependencies); + $this->assertEqual($expected_dependencies, $dependencies); // Check that the form display has dependencies on the bundle, fields and // the modules that provide the formatters. $dependencies = $new_form_display->calculateDependencies(); - $this->assertEqual($expected_form_dependencies, $dependencies); + $this->assertEqual($expected_dependencies, $dependencies); // Delete the bundle. $type->delete(); diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index df8f260..014974b 100644 --- a/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -381,7 +381,10 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setTranslatable(TRUE) ->setDisplayOptions('view', array( 'label' => 'hidden', - 'type' => 'author', + 'type' => 'entity_reference_label', + 'settings' => array( + 'link' => TRUE, + ), 'weight' => 0, )) ->setDisplayOptions('form', array(