diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 248c795..db0a028 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1790,18 +1790,6 @@ function template_preprocess_feed_icon(&$variables) { } /** - * Returns HTML for a "more" link, like those used in blocks. - * - * @param $variables - * An associative array containing: - * - url: The URL of the main page. - * - title: A descriptive verb for the link, like 'Read more'. - */ -function theme_more_link($variables) { - return ''; -} - -/** * Returns HTML for an indentation div; used for drag and drop tables. * * @param $variables @@ -2594,7 +2582,8 @@ function drupal_common_theme() { 'template' => 'feed-icon', ), 'more_link' => array( - 'variables' => array('url' => NULL, 'title' => NULL) + 'variables' => array('url' => NULL, 'title' => NULL), + 'template' => 'more-link', ), 'progress_bar' => array( 'variables' => array('label' => NULL, 'percent' => NULL, 'message' => NULL), diff --git a/core/modules/system/templates/more-link.html.twig b/core/modules/system/templates/more-link.html.twig new file mode 100644 index 0000000..a914f0c --- /dev/null +++ b/core/modules/system/templates/more-link.html.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Default theme implementation for a more link. + * + * Available variables: + * - url: The URL of the main page. + * - title: A descriptive verb for the link, like 'Read more'. + * + * @ingroup themeable + */ +#} +