public function getPortableElementByIdentifier($type, $identifier, $version=null)
    {
        $model = $this->getPortableModelRegistry()->getModel($type);
        $registry = $model->getRegistry();

        if($registry->has($identifier, $version)){
            return $registry->fetch($identifier, $version);
        }
        return null;
    }
public function getPortableElementByIdentifier($type, $identifier, $version=null)
    {
        $model = $this->getPortableModelRegistry()->getModel($type);
        $registry = $model->getRegistry();

        if($registry->has($identifier, $version)){
            return $registry->fetch($identifier, $version);
        }
        return null;
    }
public function getPortableElementByIdentifier ( $ type , $ identifier , $ version = null ) { $ model = $ this -> getPortableModelRegistry ( ) -> getModel ( $ type ) ; $ registry = $ model -> getRegistry ( ) ; if ( $ registry -> has ( $ identifier , $ version ) ) { return $ registry -> fetch ( $ identifier , $ version ) ; } return null ; }
Get model from identifier & version

@param $type
@param $identifier
@param null $version
@return null|PortableElementObject
@throws PortableElementNotFoundException
@throws PortableElementInconsistencyModelException
Get model from identifier & version