private function searchLocalizationByRequestKey($key)
	{
		$localizationId = $this->getRequestInput()->get($key);

		// Fix for news application filter folders
		if (strpos($localizationId, '_') !== false) {
			$localizationId = strstr($localizationId, '_', true);
		}

		if (empty($localizationId)) {
			return null;
		}

		return $this->getEntityManager()
				->find(Localization::CN(), $localizationId);
	}
private function searchLocalizationByRequestKey($key)
	{
		$localizationId = $this->getRequestInput()->get($key);

		// Fix for news application filter folders
		if (strpos($localizationId, '_') !== false) {
			$localizationId = strstr($localizationId, '_', true);
		}

		if (empty($localizationId)) {
			return null;
		}

		return $this->getEntityManager()
				->find(Localization::CN(), $localizationId);
	}
private function searchLocalizationByRequestKey ( $ key ) { $ localizationId = $ this -> getRequestInput ( ) -> get ( $ key ) ; // Fix for news application filter folders if ( strpos ( $ localizationId , '_' ) !== false ) { $ localizationId = strstr ( $ localizationId , '_' , true ) ; } if ( empty ( $ localizationId ) ) { return null ; } return $ this -> getEntityManager ( ) -> find ( Localization :: CN ( ) , $ localizationId ) ; }
Try selecting page localization by request parameter.

@param string $key
@return Localization
Try selecting page localization by request parameter .