private function getRlForHistory($rl) { try { $this->rlpMapper->loadByResourceLocator($rl, 'sulu_io', 'de'); return false; } catch (ResourceLocatorMovedException $ex) { return $ex->getNewResourceLocator(); } }
public function testLoad() { //its a delegate $result = $this->mapper->loadByResourceLocator('/test', 'default', 'de'); $this->assertEquals('this-is-a-uuid', $result); }
/** * returns the uuid of referenced content node. * * @param string $resourceLocator requested RL * @param string $webspaceKey key of portal * @param string $languageCode * @param string $segmentKey * * @return string uuid of content node */ public function loadByResourceLocator($resourceLocator, $webspaceKey, $languageCode, $segmentKey = null) { // delegate to mapper return $this->mapper->loadByResourceLocator($resourceLocator, $webspaceKey, $languageCode, $segmentKey); }