for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Category\Ee\Observers\EeClearUrlRewriteObserver
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2021 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import-category-ee
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Category\Ee\Observers;
use TechDivision\Import\Category\Observers\ClearUrlRewriteObserver;
* Observer that removes the URL rewrite for the category with the path found in the CSV file.
class EeClearUrlRewriteObserver extends ClearUrlRewriteObserver
{
* Return's the entity ID for the passed path.
* @param string $path The path to return the entity ID for
* @return integer The mapped entity ID
* @throws \Exception Is thrown, if the path can not be mapped
protected function mapPath($path)
return $this->getSubject()->mapPathRowId($path);
}