protected function getItemAttributes(ItemInterface $item)
    {
        $result = $item->getAttributes();

        $result['id'] = $item->getId();
        $result['content'] = $item->getContent();
        $result['collection'] = $item->getCollection();
        $result['path'] = $item->getPath(ItemInterface::SNAPSHOT_PATH_RELATIVE);

        return $result;
    }
protected function getItemAttributes(ItemInterface $item)
    {
        $result = $item->getAttributes();

        $result['id'] = $item->getId();
        $result['content'] = $item->getContent();
        $result['collection'] = $item->getCollection();
        $result['path'] = $item->getPath(ItemInterface::SNAPSHOT_PATH_RELATIVE);

        return $result;
    }
protected function getItemAttributes ( ItemInterface $ item ) { $ result = $ item -> getAttributes ( ) ; $ result [ 'id' ] = $ item -> getId ( ) ; $ result [ 'content' ] = $ item -> getContent ( ) ; $ result [ 'collection' ] = $ item -> getCollection ( ) ; $ result [ 'path' ] = $ item -> getPath ( ItemInterface :: SNAPSHOT_PATH_RELATIVE ) ; return $ result ; }
Gets the attributes of an item.

@param ItemInterface $item

@return array
Gets the attributes of an item .