Jump to content

Manual:ContentMetadataCollector.php

From mediawiki.org

Wikimedia file, part of Parsoid, containing an interface for collecting the results of a parse.

This class is used by Parsoid to record metainformation about a particular bit of parsed content which is extracted during the parse. This includes, for example:

  • Table of contents information
  • Lists of links/categories/templates/images present in the content
  • Expected cache lifetime of this parsed content is also recorded here, as it is influenced by certain things which may be encountered during the parse.

In core this is implemented by ParserOutput. Core uses ParserOutput to record the rendered HTML (and rendered table of contents HTML), but on the Parsoid side we're going to keep rendered HTML DOM out of this interface. We use PageBundle for this.

[edit]