Skip to content

Commit a6c6fb5

Browse files
committed
use author and contributors meta tag to get the authorName
1 parent 87194b5 commit a6c6fb5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Providers/Html.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ public function getUrl()
107107
return $this->bag->get('canonical');
108108
}
109109

110+
/**
111+
* {@inheritdoc}
112+
*/
113+
public function getAuthorName()
114+
{
115+
return $this->bag->get('author') ?: $this->bag->get('contributors');
116+
}
117+
110118
/**
111119
* {@inheritdoc}
112120
*/

0 commit comments

Comments
 (0)