You are here

public function TeamInvitationStatusFilter::getValueOptions in Apigee Edge 8

Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

This can use a guard to be used to reduce database hits as much as possible.

Return value

array|null The stored values from $this->valueOptions.

Overrides InOperator::getValueOptions

File

modules/apigee_edge_teams/src/Plugin/views/filter/TeamInvitationStatusFilter.php, line 36

Class

TeamInvitationStatusFilter
Providers filtering for team_invitation status.

Namespace

Drupal\apigee_edge_teams\Plugin\views\filter

Code

public function getValueOptions() {
  $this->valueOptions = [
    TeamInvitationInterface::STATUS_PENDING => $this
      ->t('Pending'),
    TeamInvitationInterface::STATUS_ACCEPTED => $this
      ->t('Accepted'),
    TeamInvitationInterface::STATUS_DECLINED => $this
      ->t('Declined'),
    TeamInvitationInterface::STATUS_EXPIRED => $this
      ->t('Expired'),
  ];
  return $this->valueOptions;
}