You are here

public function SmartDateFormat::getOptions in Smart Date 8

Same name and namespace in other branches
  1. 8.2 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  2. 3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  3. 3.0.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  4. 3.1.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  5. 3.2.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  6. 3.3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
  7. 3.4.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()

Gets the array of options for this format.

Return value

array The array of values used to assemble the output.

Overrides SmartDateFormatInterface::getOptions

File

src/Entity/SmartDateFormat.php, line 252

Class

SmartDateFormat
Defines the Smart date format entity.

Namespace

Drupal\smart_date\Entity

Code

public function getOptions() {
  $keys = $this
    ->getAllKeys();
  $values = [];
  foreach ($keys as $key) {
    $values[$key] = $this
      ->get($key);
  }
  return $values;
}