toofle content visibility

This commit is contained in:
Manuel Raynaud
2013-09-23 12:08:59 +02:00
parent 74fde51d96
commit 7bc34d3d0f
6 changed files with 64 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
namespace Thelia\Controller\Admin;
use Thelia\Core\Event\Content\ContentCreateEvent;
use Thelia\Core\Event\Content\ContentToggleVisibilityEvent;
use Thelia\Core\Event\Content\ContentUpdateEvent;
use Thelia\Core\Event\TheliaEvents;
use Thelia\Core\Event\UpdatePositionEvent;
@@ -314,4 +315,12 @@ class ContentController extends AbstractCrudController
$positionValue
);
}
/**
* @return FolderToggleVisibilityEvent|void
*/
protected function createToggleVisibilityEvent()
{
return new ContentToggleVisibilityEvent($this->getExistingObject());
}
}