Change getRewrittenUrlViewName signature to public, to allow export to do a single query.
modifié: core/lib/Thelia/Model/Brand.php modifié: core/lib/Thelia/Model/Category.php modifié: core/lib/Thelia/Model/Content.php modifié: core/lib/Thelia/Model/Folder.php modifié: core/lib/Thelia/Model/Product.php modifié: core/lib/Thelia/Model/Tools/UrlRewritingTrait.php
This commit is contained in:
@@ -22,7 +22,7 @@ class Brand extends BaseBrand implements FileModelParentInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected function getRewrittenUrlViewName()
|
public function getRewrittenUrlViewName()
|
||||||
{
|
{
|
||||||
return 'brand';
|
return 'brand';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class Category extends BaseCategory implements FileModelParentInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected function getRewrittenUrlViewName()
|
public function getRewrittenUrlViewName()
|
||||||
{
|
{
|
||||||
return 'category';
|
return 'category';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class Content extends BaseContent implements FileModelParentInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected function getRewrittenUrlViewName()
|
public function getRewrittenUrlViewName()
|
||||||
{
|
{
|
||||||
return 'content';
|
return 'content';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class Folder extends BaseFolder implements FileModelParentInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected function getRewrittenUrlViewName()
|
public function getRewrittenUrlViewName()
|
||||||
{
|
{
|
||||||
return 'folder';
|
return 'folder';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Product extends BaseProduct implements FileModelParentInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
protected function getRewrittenUrlViewName()
|
public function getRewrittenUrlViewName()
|
||||||
{
|
{
|
||||||
return 'product';
|
return 'product';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ trait UrlRewritingTrait
|
|||||||
/**
|
/**
|
||||||
* @returns string the view name of the rewritten object (e.g., 'category', 'product')
|
* @returns string the view name of the rewritten object (e.g., 'category', 'product')
|
||||||
*/
|
*/
|
||||||
abstract protected function getRewrittenUrlViewName();
|
abstract public function getRewrittenUrlViewName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the object URL for the given locale, rewritten if rewriting is enabled.
|
* Get the object URL for the given locale, rewritten if rewriting is enabled.
|
||||||
|
|||||||
Reference in New Issue
Block a user