src/Service/EntityManager/ReductionManager.php
/**
     * Keep the last Reduction slug (instead of making a new one).
     */
Keep the last Reduction slug (instead of making a new one).
Keep the last Reduction slug ( instead of making a new one ) .
public function handleSlug(Reduction $reduction, string $oldTitle): Reduction
    {
        $currentReductionTitle = $reduction->getTitle();
        if ($oldTitle !== $currentReductionTitle) {
            $reduction->setSlug(SeoSlugger::uniqueSlugify($currentReductionTitle));
        }
        return $reduction;
    }
public function handleSlug ( Reduction $ reduction , string $ oldTitle ) : Reduction { $ currentReductionTitle = $ reduction -> getTitle ( ) ; if ( $ oldTitle !== $ currentReductionTitle ) { $ reduction -> setSlug ( SeoSlugger :: uniqueSlugify ( $ currentReductionTitle ) ) ; } return $ reduction ; }
Keep the last Reduction slug (instead of making a new one).
Keep the last Reduction slug ( instead of making a new one ) .