/** * Returns a hash, with fieldType identifiers as keys and human readable names as values. * * @return array */ private function getFieldTypeList() { $list = []; foreach ($this->fieldTypeCollectionFactory->getConcreteFieldTypesIdentifiers() as $fieldTypeIdentifier) { $list[$fieldTypeIdentifier] = $this->translator->trans("{$fieldTypeIdentifier}.name", [], 'fieldtypes'); } asort($list, SORT_NATURAL); return $list; }