OutputPage: Add addHeadItems() method
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 25 Jul 2016 23:54:13 +0000 (00:54 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 25 Jul 2016 23:57:03 +0000 (00:57 +0100)
commit3600ad0e5b0d0f2382668dd7b23f7ea8db963f40
tree3c1a43b5f39c46dab6c092a46dc8e255496bb2d5
parenta1b68ff934c574d7be9101f2202cc23fabbb678d
OutputPage: Add addHeadItems() method

Right now OutputPage requires head items to have a name when using
the addHeadItem() method.

This in contrary to most of the helper methods, which don't require
a name. ParserOutput::addHeadItem() also doesn't require a name.

Since the existing signature isn't easily changed without adding
confusion, add a separate method that allow numerical indexes
to be pushed.

This ability was already exposed via addParserOutputMetadata()
and its array_merge. This method exposes it directly.

Change-Id: I433afd124b57526caa13a540cda48ba2b99a9bde
includes/OutputPage.php