public function SmartDateFormat::getOptions in Smart Date 3.4.x
Same name and namespace in other branches
- 8.2 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 8 src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 3.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 3.0.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 3.1.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 3.2.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getOptions()
- 3.3.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 273
Class
- SmartDateFormat
- Defines the Smart date format entity.
Namespace
Drupal\smart_date\EntityCode
public function getOptions() {
$keys = $this
->getAllKeys();
$values = [];
foreach ($keys as $key) {
$values[$key] = $this
->get($key);
}
return $values;
}