You are here

public function PageProcessor::process in Mini site 8

Process document.

Overrides PageProcessorInterface::process

File

src/PageProcessor.php, line 51

Class

PageProcessor
Class PageProcessor.

Namespace

Drupal\minisite

Code

public function process() {
  $this
    ->processTagBase();
  foreach ($this->document
    ->getElementsByTagName('a') as $item) {
    $this
      ->processTagA($item);
  }
  foreach ($this->document
    ->getElementsByTagName('link') as $item) {
    $this
      ->processTagLink($item);
  }
  foreach ($this->document
    ->getElementsByTagName('img') as $item) {
    $this
      ->processTagImg($item);
  }
  foreach ($this->document
    ->getElementsByTagName('script') as $item) {
    $this
      ->processTagScript($item);
  }
  foreach ($this->document
    ->getElementsByTagName('style') as $item) {
    $this
      ->processTagStyle($item);
  }
}