getPossibleOptions($account)); } /** * {@inheritdoc} */ public function getPossibleOptions(AccountInterface $account = NULL) { return array_map(function ($format) { return $format->label(); }, filter_formats()); } /** * {@inheritdoc} */ public function getSettableValues(AccountInterface $account = NULL) { return array_keys($this->getSettableOptions($account)); } /** * {@inheritdoc} */ public function getSettableOptions(AccountInterface $account = NULL) { // @todo: Avoid calling functions but move to injected dependencies. return array_map(function ($format) { return $format->label(); }, filter_formats($account)); } }