You are here

public function XmlSitemapWriter::writeSitemapElement in XML sitemap 8

Writes an full XML sitemap element tag.

Parameters

string $name: The element name.

array $element: An array of the elements properties and values.

File

src/XmlSitemapWriter.php, line 197

Class

XmlSitemapWriter
Extended class for writing XML sitemap files.

Namespace

Drupal\xmlsitemap

Code

public function writeSitemapElement($name, array $element) {
  $this
    ->writeElement($name, $element);
}