lib/Collection/QueryType/Handler/Traits/ObjectStateFilterTrait.php
private function getObjectStateIds(array $stateIdentifiers): array
    {
        $idList = [];

        foreach ($stateIdentifiers as $identifier) {
            $identifier = explode('|', $identifier);
            if (count($identifier) !== 2) {
                continue;
            }

            try {
                $stateGroup = $this->objectStateHandler->loadGroupByIdentifier($identifier[0]);
                $objectState = $this->objectStateHandler->loadByIdentifier($identifier[1], $stateGroup->id);
                $idList[$stateGroup->id][] = $objectState->id;
            } catch (NotFoundException $e) {
                continue;
            }
        }

        return $idList;
    }
private function getObjectStateIds(array $stateIdentifiers): array
    {
        $idList = [];

        foreach ($stateIdentifiers as $identifier) {
            $identifier = explode('|', $identifier);
            if (count($identifier) !== 2) {
                continue;
            }

            try {
                $stateGroup = $this->objectStateHandler->loadGroupByIdentifier($identifier[0]);
                $objectState = $this->objectStateHandler->loadByIdentifier($identifier[1], $stateGroup->id);
                $idList[$stateGroup->id][] = $objectState->id;
            } catch (NotFoundException $e) {
                continue;
            }
        }

        return $idList;
    }
private function getObjectStateIds ( array $ stateIdentifiers ) : array { $ idList = [ ] ; foreach ( $ stateIdentifiers as $ identifier ) { $ identifier = explode ( '|' , $ identifier ) ; if ( count ( $ identifier ) !== 2 ) { continue ; } try { $ stateGroup = $ this -> objectStateHandler -> loadGroupByIdentifier ( $ identifier [ 0 ] ) ; $ objectState = $ this -> objectStateHandler -> loadByIdentifier ( $ identifier [ 1 ] , $ stateGroup -> id ) ; $ idList [ $ stateGroup -> id ] [ ] = $ objectState -> id ; } catch ( NotFoundException $ e ) { continue ; } } return $ idList ; }
Returns object state IDs for all provided object state identifiers.

State identifiers are in format "<group_identifier>|<state_identifier>"
Returns object state IDs for all provided object state identifiers .