diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php index e628757..2eb89be 100644 --- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php +++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php @@ -41,7 +41,7 @@ protected function setUp() { // Create content type, with underscores. $type_name = strtolower($this->randomMachineName(8)) . '_test'; $type = $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name)); - $this->type = $type->type; + $this->type = $type->id(); // Create a default vocabulary. $vocabulary = entity_create('taxonomy_vocabulary', array( diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index c86920b..2fbd68e 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -43,7 +43,7 @@ protected function setUp() { // Create content type, with underscores. $type_name = strtolower($this->randomMachineName(8)) . '_test'; $type = $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name)); - $this->type = $type->type; + $this->type = $type->id(); // Create random field name. $this->field_label = $this->randomMachineName(8); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index bc466f6..e1167ee 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -129,7 +129,8 @@ function node_help($route_name, RouteMatchInterface $route_match) { case 'node.add': $type = $route_match->getParameter('node_type'); - return (!empty($type->help) ? Xss::filterAdmin($type->help) : ''); + $help = $type->get('help'); + return (!empty($help) ? Xss::filterAdmin($help) : ''); } } diff --git a/core/modules/node/node.pages.inc b/core/modules/node/node.pages.inc index 112e9c2..7ab5c2e 100644 --- a/core/modules/node/node.pages.inc +++ b/core/modules/node/node.pages.inc @@ -30,10 +30,10 @@ function template_preprocess_node_add_list(&$variables) { $variables['types'] = array(); if (!empty($variables['content'])) { foreach ($variables['content'] as $type) { - $variables['types'][$type->type] = array( - 'type' => $type->type, - 'add_link' => \Drupal::l($type->name, new Url('node.add', array('node_type' => $type->type))), - 'description' => Xss::filterAdmin($type->description), + $variables['types'][$type->id()] = array( + 'type' => $type->id(), + 'add_link' => \Drupal::l($type->label(), new Url('node.add', array('node_type' => $type->id()))), + 'description' => Xss::filterAdmin($type->get('description')), ); } }