implement new breadcrumb on image and document edition in the catalog. Fix #460
This commit is contained in:
@@ -2,13 +2,18 @@
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\Routing\Router;
|
||||
use Thelia\Model\Base\ContentDocument as BaseContentDocument;
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Thelia\Model\Breadcrumb\BreadcrumbInterface;
|
||||
use Thelia\Model\Breadcrumb\FolderBreadcrumbTrait;
|
||||
|
||||
class ContentDocument extends BaseContentDocument
|
||||
class ContentDocument extends BaseContentDocument implements BreadcrumbInterface
|
||||
{
|
||||
use \Thelia\Model\Tools\ModelEventDispatcherTrait;
|
||||
use \Thelia\Model\Tools\PositionManagementTrait;
|
||||
use FolderBreadcrumbTrait;
|
||||
|
||||
/**
|
||||
* Calculate next position relative to our parent
|
||||
@@ -62,4 +67,15 @@ class ContentDocument extends BaseContentDocument
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* return the complete breadcrumb for a given resource.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getBreadcrumb(Router $router, ContainerInterface $container, $tab)
|
||||
{
|
||||
return $this->getContentBreadcrumb($router, $container, $tab);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user