protected function validateAndResolveId($id)
    {
        $this->validateId($id);
        $id = $this->resolveId($id);
        if (!isset($this->items[$id])) {
            throw new Exception\ItemNotFoundException(sprintf('The "%s" item does not exist.', $id));
        }

        return $id;
    }
protected function validateAndResolveId($id)
    {
        $this->validateId($id);
        $id = $this->resolveId($id);
        if (!isset($this->items[$id])) {
            throw new Exception\ItemNotFoundException(sprintf('The "%s" item does not exist.', $id));
        }

        return $id;
    }
protected function validateAndResolveId ( $ id ) { $ this -> validateId ( $ id ) ; $ id = $ this -> resolveId ( $ id ) ; if ( ! isset ( $ this -> items [ $ id ] ) ) { throw new Exception \ ItemNotFoundException ( sprintf ( 'The "%s" item does not exist.' , $ id ) ) ; } return $ id ; }
Checks the layout item id for empty and returns real id
Also this method raises an exception if the layout item does not exist

@param string $id The layout item id

@return string The resolved item id

@throws Exception\InvalidArgumentException if the id is empty
@throws Exception\ItemNotFoundException if the layout item does not exist
Checks the layout item id for empty and returns real id Also this method raises an exception if the layout item does not exist