| @@ 895-907 (lines=13) @@ | ||
| 892 | * |
|
| 893 | * @return array List of allowed choices |
|
| 894 | */ |
|
| 895 | public static function getWorkflowStateAllowedValues() |
|
| 896 | { |
|
| 897 | $serviceManager = ServiceUtil::getManager(); |
|
| 898 | $helper = $serviceManager->get('zikula_routes_module.listentries_helper'); |
|
| 899 | $listEntries = $helper->getWorkflowStateEntriesForRoute(); |
|
| 900 | ||
| 901 | $allowedValues = []; |
|
| 902 | foreach ($listEntries as $entry) { |
|
| 903 | $allowedValues[] = $entry['value']; |
|
| 904 | } |
|
| 905 | ||
| 906 | return $allowedValues; |
|
| 907 | } |
|
| 908 | ||
| 909 | /** |
|
| 910 | * Returns a list of possible choices for the routeType list field. |
|
| @@ 915-927 (lines=13) @@ | ||
| 912 | * |
|
| 913 | * @return array List of allowed choices |
|
| 914 | */ |
|
| 915 | public static function getRouteTypeAllowedValues() |
|
| 916 | { |
|
| 917 | $serviceManager = ServiceUtil::getManager(); |
|
| 918 | $helper = $serviceManager->get('zikula_routes_module.listentries_helper'); |
|
| 919 | $listEntries = $helper->getRouteTypeEntriesForRoute(); |
|
| 920 | ||
| 921 | $allowedValues = []; |
|
| 922 | foreach ($listEntries as $entry) { |
|
| 923 | $allowedValues[] = $entry['value']; |
|
| 924 | } |
|
| 925 | ||
| 926 | return $allowedValues; |
|
| 927 | } |
|
| 928 | ||
| 929 | /** |
|
| 930 | * @Assert\Callback() |
|