Backend\Modules\ContentBlocks\Command\DeleteContentBlockHandler::handle PHP Method

handle() public method

public handle ( DeleteContentBlock $deleteContentBlock ) : ContentBlock
$deleteContentBlock DeleteContentBlock
return Backend\Modules\ContentBlocks\Entity\ContentBlock
    public function handle(DeleteContentBlock $deleteContentBlock)
    {
        $this->contentBlockRepository->removeByIdAndLocale($deleteContentBlock->contentBlock->getId(), $deleteContentBlock->contentBlock->getLocale());
        Model::deleteExtraById($deleteContentBlock->contentBlock->getExtraId());
    }
DeleteContentBlockHandler