. * * @file * @ingroup Skins */ declare( strict_types=1 ); namespace MediaWiki\Skins\Citizen\Partials; /** * Footer partial of Skin Citizen */ final class Footer extends Partial { /** * Decorate footer template data * * @param array $footerData original data-footer * @return array for use in Mustache template describing the footer elements. */ public function decorateFooterData( $footerData ): array { // Add label to footer-info to use in ContentFooter foreach ( $footerData['data-info']['array-items'] as &$item ) { $msgKey = 'citizen-page-info-' . $item['name']; $item['label'] = $this->skin->msg( $msgKey )->text(); } return $footerData; } }