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

@ -117,7 +117,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
$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);