Loading modules/social_features/social_event/src/Entity/EventEnrollment.php +11 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,17 @@ class EventEnrollment extends ContentEntityBase implements EventEnrollmentInterf return $this->get('name')->value; } /** * {@inheritdoc} */ public function label() { $label = $this->getName(); if (empty($label)) { $label = $this->get('field_account')->entity->label(); } return $label; } /** * {@inheritdoc} */ Loading Loading
modules/social_features/social_event/src/Entity/EventEnrollment.php +11 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,17 @@ class EventEnrollment extends ContentEntityBase implements EventEnrollmentInterf return $this->get('name')->value; } /** * {@inheritdoc} */ public function label() { $label = $this->getName(); if (empty($label)) { $label = $this->get('field_account')->entity->label(); } return $label; } /** * {@inheritdoc} */ Loading