abstract class LinkRelBase extends MetaNameBase {
/**
- * Display the meta tag.
+ * {@inheritdoc}
*/
public function output() {
$element = parent::output();
- if ($element) {
+ if (!empty($element['#attributes']['content'])) {
$element['#tag'] = 'link';
$element['#attributes'] = [
'rel' => $this->name(),