Actor entity label now includes subtype

This commit is contained in:
naomi 2018-04-29 14:54:28 +02:00
parent 900ba263c7
commit 469f2413ec

View File

@ -115,9 +115,10 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
}
}
$name = $this->get('first_name') ->value . ' ';
$name = $this->get('first_name')->value . ' ';
if ($this->get('middle_names')->value) $name .= $this->get('middle_names')->value . ' ';
$name .= $this->get('last_name')->value;
$name .= $this->get('last_name')->value . ' ';
$name .= '(' . $this->bundle() . ')';
$this->setName($name);