Loading modules/social_features/social_event/src/Entity/EventEnrollment.php +11 Changes for modules/social_features/social_event/src/Entity/EventEnrollment.php: 11 added lines, 0 removed lines. 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 Changes for modules/social_features/social_event/src/Entity/EventEnrollment.php: 11 added lines, 0 removed lines. 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