Skip to content
Snippets Groups Projects
Commit 629df0b6 authored by Dimitris Spachos's avatar Dimitris Spachos Committed by Owen Bush
Browse files

Issue #3162026 by dspachos, owenbush: D9 getUsername is deprecated

parent 49d89259
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,7 @@ class EventSeriesForm extends ContentEntityForm {
$form['meta']['author'] = [
'#type' => 'item',
'#title' => $this->t('Author'),
'#markup' => $entity->getOwner()->getUsername(),
'#markup' => $entity->getOwner()->getDisplayName(),
'#wrapper_attributes' => ['class' => ['entity-meta__author']],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment