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