diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index abf6c4f..8cdc9c1 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -120,9 +120,6 @@ function seven_preprocess_node_add_list(&$variables) { $variables['types'][$type->type]['url'] = \Drupal::url('node.add', array('node_type' => $type->type)); } } - else { - $variables['add_content_type_url'] = \Drupal::url('node.type_add'); - } } /** diff --git a/core/themes/seven/templates/node-add-list.html.twig b/core/themes/seven/templates/node-add-list.html.twig index 4d5e020..17e4ac4 100644 --- a/core/themes/seven/templates/node-add-list.html.twig +++ b/core/themes/seven/templates/node-add-list.html.twig @@ -22,8 +22,9 @@ {% else %}

+ {% set create_content = url('admin/structure/types/add') %} {% trans %} - You have not created any content types yet. Go to the content type creation page to add a new content type. + You have not created any content types yet. Go to the content type creation page to add a new content type. {% endtrans %}

{% endif %}