You are here

public function MeetingResult::getStatusString in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/Entity/MeetingResult.php \Drupal\opigno_moxtra\Entity\MeetingResult::getStatusString()

Returns the user status as string.

Return value

string|null The user status, or NULL in case the user status field has not been set on the entity.

Overrides MeetingResultInterface::getStatusString

File

src/Entity/MeetingResult.php, line 116

Class

MeetingResult
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function getStatusString() {
  return $this
    ->get('status')->value == 1 ? t('Attended') : t('Absent');
}