Deprecation: use events of DocumentManager instead
Inheritance: extends Symfony\Component\EventDispatcher\Event
コード例 #1
0
 /**
  * @param ContentNodeEvent $event
  */
 public function onContentNodePostSave(ContentNodeEvent $event)
 {
     $this->handler->invalidateStructure($event->getStructure());
 }
コード例 #2
0
 /**
  * Called by event: ContentEvents::NODE_POST_SAVE
  */
 public function onSave(ContentNodeEvent $event)
 {
     $this->scheduler->createTask('sulu_task.warmup_page', ['uuid' => $event->getNode()->getIdentifier(), 'locale' => $event->getStructure()->getLanguageCode(), 'webspaceKey' => $event->getStructure()->getWebspaceKey()])->schedule();
 }