invalidateStructure() 공개 메소드

Invalidate the given structure.
public invalidateStructure ( Sulu\Component\Content\Compat\StructureInterface $structure )
$structure Sulu\Component\Content\Compat\StructureInterface
예제 #1
0
 /**
  * @param ContentNodeDeleteEvent
  */
 public function onContentNodePostDelete(ContentNodeDeleteEvent $event)
 {
     foreach ($this->structureInvalidationStack as $structure) {
         $this->handler->invalidateStructure($structure);
     }
 }
예제 #2
0
 /**
  * Invalidates the structure of the given document.
  *
  * @param $document
  */
 private function invalidateDocumentStructure($document)
 {
     $structureBridge = $this->structureManager->wrapStructure($this->documentInspector->getMetadata($document)->getAlias(), $this->documentInspector->getStructureMetadata($document));
     $structureBridge->setDocument($document);
     $this->structureHandler->invalidateStructure($structureBridge);
 }