public function getLastValidBlockItem(Block $block)
    {
        if (isset($this->lastValidItems[$block])) {
            return $this->lastValidItems[$block];
        }

        return $this->lastValidItems[$block] = $this->getStorageGateway()->getLastValidBlockItem($block);
    }
public function getLastValidBlockItem(Block $block)
    {
        if (isset($this->lastValidItems[$block])) {
            return $this->lastValidItems[$block];
        }

        return $this->lastValidItems[$block] = $this->getStorageGateway()->getLastValidBlockItem($block);
    }
public function getLastValidBlockItem ( Block $ block ) { if ( isset ( $ this -> lastValidItems [ $ block ] ) ) { return $ this -> lastValidItems [ $ block ] ; } return $ this -> lastValidItems [ $ block ] = $ this -> getStorageGateway ( ) -> getLastValidBlockItem ( $ block ) ; }
Returns the last valid item, for a given block.

@param \eZ\Publish\Core\FieldType\Page\Parts\Block $block

@return \eZ\Publish\Core\FieldType\Page\Parts\Item|null
Returns the last valid item for a given block .