public static function getActionValidationGroups($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $result = [];

        $className = get_called_class();
        $methodNames = get_class_methods($className);
        foreach ($methodNames as $methodName) {
            if (strlen($methodName) > 6 && strpos($methodName, 'Action', strlen($methodName) - 6) !== false) {
                $validationGroupsAnnotation = $reflectionService->getMethodAnnotation($className, $methodName, Flow\ValidationGroups::class);
                if ($validationGroupsAnnotation !== null) {
                    $result[$methodName] = $validationGroupsAnnotation->validationGroups;
                }
            }
        }

        return $result;
    }
public static function getActionValidationGroups($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $result = [];

        $className = get_called_class();
        $methodNames = get_class_methods($className);
        foreach ($methodNames as $methodName) {
            if (strlen($methodName) > 6 && strpos($methodName, 'Action', strlen($methodName) - 6) !== false) {
                $validationGroupsAnnotation = $reflectionService->getMethodAnnotation($className, $methodName, Flow\ValidationGroups::class);
                if ($validationGroupsAnnotation !== null) {
                    $result[$methodName] = $validationGroupsAnnotation->validationGroups;
                }
            }
        }

        return $result;
    }
public static function getActionValidationGroups ( $ objectManager ) { $ reflectionService = $ objectManager -> get ( ReflectionService :: class ) ; $ result = [ ] ; $ className = get_called_class ( ) ; $ methodNames = get_class_methods ( $ className ) ; foreach ( $ methodNames as $ methodName ) { if ( strlen ( $ methodName ) > 6 && strpos ( $ methodName , 'Action' , strlen ( $ methodName ) - 6 ) !== false ) { $ validationGroupsAnnotation = $ reflectionService -> getMethodAnnotation ( $ className , $ methodName , Flow \ ValidationGroups :: class ) ; if ( $ validationGroupsAnnotation !== null ) { $ result [ $ methodName ] = $ validationGroupsAnnotation -> validationGroups ; } } } return $ result ; }
Returns a map of action method names and their validation groups.

@param ObjectManagerInterface $objectManager
@return array Array of validation groups by action method name
@Flow\CompileStatic
Returns a map of action method names and their validation groups .