src/Service/EntityManager/ArticleManager.php
/**
     * Enable/Disable an Article.
     */
Enable/Disable an Article.
Enable / Disable an Article .
public function changeStatus(Article $article): Article
    {
        $article->isActive() ? $article->setIsActive(false) : $article->setIsActive(true);
        return $article;
    }
public function changeStatus ( Article $ article ) : Article { $ article -> isActive ( ) ? $ article -> setIsActive ( false ) : $ article -> setIsActive ( true ) ; return $ article ; }
Enable/Disable an Article.
Enable / Disable an Article .