You are here

public function ScheduledTransition::getOptions in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Entity/ScheduledTransition.php \Drupal\scheduled_transitions\Entity\ScheduledTransition::getOptions()

Get the options.

Return value

array An array of options.

Overrides ScheduledTransitionInterface::getOptions

File

src/Entity/ScheduledTransition.php, line 206

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getOptions() : array {
  $options = $this
    ->get('options')
    ->first();
  if (isset($options)) {
    return $options
      ->getValue();
  }
  return [];
}