Revision ec6065fa
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/theme/cdm_dataportal.references.theme | ||
---|---|---|
79 | 79 |
} |
80 | 80 |
|
81 | 81 |
/** |
82 |
* Creates an internal link displayes as icon. |
|
83 |
* |
|
82 | 84 |
* @param $path |
85 |
* The drupal path to create the link for |
|
86 |
* @param string[] $class_attributes |
|
87 |
* Class attributes for the link element. By default ['superscript'] is being used. |
|
83 | 88 |
* |
84 | 89 |
* @return string |
85 | 90 |
*/ |
86 |
function cdm_internal_link($path) { |
|
87 |
return l(custom_icon_font_markup('icon-interal-link-alt-solid', array('class' => array('superscript'))), $path, array('html' => true));
|
|
91 |
function cdm_internal_link($path, $class_attributes = ['superscript']) {
|
|
92 |
return l(custom_icon_font_markup('icon-interal-link-alt-solid', ['class' => $class_attributes]), $path, ['html' => true]);
|
|
88 | 93 |
} |
89 | 94 |
|
90 | 95 |
/** |
Also available in: Unified diff
ref #7599 ref #6866 specimen details tables - derivation tree nodes with links to specimen page