controller/frontend/src/Controller/Frontend/Product/Standard.php
public function resolve( $name )
	{
		$langid = $this->getContext()->getLocale()->getLanguageId();

		$search = $this->manager->createSearch();
		$func = $search->createFunction( 'index.text:url', [$langid] );
		$search->setConditions( $search->compare( '==', $func, $name ) );

		$items = $this->manager->searchItems( $search, $this->domains );

		if( ( $item = reset( $items ) ) !== false ) {
			return $item;
		}

		throw new \Aimeos\Controller\Frontend\Product\Exception( sprintf( 'Unable to find product "%1$s"', $name ) );
	}
public function resolve( $name )
	{
		$langid = $this->getContext()->getLocale()->getLanguageId();

		$search = $this->manager->createSearch();
		$func = $search->createFunction( 'index.text:url', [$langid] );
		$search->setConditions( $search->compare( '==', $func, $name ) );

		$items = $this->manager->searchItems( $search, $this->domains );

		if( ( $item = reset( $items ) ) !== false ) {
			return $item;
		}

		throw new \Aimeos\Controller\Frontend\Product\Exception( sprintf( 'Unable to find product "%1$s"', $name ) );
	}
public function resolve ( $ name ) { $ langid = $ this -> getContext ( ) -> getLocale ( ) -> getLanguageId ( ) ; $ search = $ this -> manager -> createSearch ( ) ; $ func = $ search -> createFunction ( 'index.text:url' , [ $ langid ] ) ; $ search -> setConditions ( $ search -> compare ( '==' , $ func , $ name ) ) ; $ items = $ this -> manager -> searchItems ( $ search , $ this -> domains ) ; if ( ( $ item = reset ( $ items ) ) !== false ) { return $ item ; } throw new \ Aimeos \ Controller \ Frontend \ Product \ Exception ( sprintf ( 'Unable to find product "%1$s"' , $ name ) ) ; }
Returns the product for the given product URL name

@param string $name Product URL name
@return \Aimeos\MShop\Product\Item\Iface Product item including the referenced domains items
@since 2019.04
Returns the product for the given product URL name