Exemple #1
0
 /**
  * Extract close
  */
 public function extractClosing(NodeInterface $child, NodeInterface $parent)
 {
     if ($child instanceof BlockInterface and $closingTag = $child->getClosingTag()) {
         $content = preg_replace($this->search($closingTag), $child->getExtractionId(static::CLOSING_TAG), $parent->getCurrentContent(), self::LIMIT);
         $parent->setCurrentContent($content);
     }
 }