lib/Form/Type/ContentBrowserMultipleType.php
private function getItems($itemValues, string $itemType): array
    {
        $items = [];

        foreach ((array) $itemValues as $itemValue) {
            try {
                $backend = $this->backendRegistry->getBackend($itemType);
                $item = $backend->loadItem($itemValue);
                $items[$item->getValue()] = $item;
            } catch (NotFoundException $e) {
                // Do nothing
            }
        }

        return $items;
    }
private function getItems($itemValues, string $itemType): array
    {
        $items = [];

        foreach ((array) $itemValues as $itemValue) {
            try {
                $backend = $this->backendRegistry->getBackend($itemType);
                $item = $backend->loadItem($itemValue);
                $items[$item->getValue()] = $item;
            } catch (NotFoundException $e) {
                // Do nothing
            }
        }

        return $items;
    }
private function getItems ( $ itemValues , string $ itemType ) : array { $ items = [ ] ; foreach ( ( array ) $ itemValues as $ itemValue ) { try { $ backend = $ this -> backendRegistry -> getBackend ( $ itemType ) ; $ item = $ backend -> loadItem ( $ itemValue ) ; $ items [ $ item -> getValue ( ) ] = $ item ; } catch ( NotFoundException $ e ) { // Do nothing } } return $ items ; }
Returns the array of items for all provided item values.

@param mixed $itemValues
@param string $itemType

@return array
Returns the array of items for all provided item values .