Hot answers tagged

2

A way to do this would be to override the proprocess function get the domain like this: function MY_MODULE_preprocess_views_view_field(&$variables) { $field = $variables['field']; if ($field->field == 'MY_LINK_FIELD_NAME') { $url = $variables['field']->getValue($variables['row'])[0]; $parse = parse_url($url); $variables['output'] =...


Only top voted, non community-wiki answers of a minimum length are eligible