wikimedia/mediawiki-extensions-Translate

View on GitHub
src/TranslatorInterface/Aid/GroupsAid.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\TranslatorInterface\Aid;

/**
 * @author Niklas Laxström
 * @license GPL-2.0-or-later
 * @since 2021.05
 */
class GroupsAid extends TranslationAid {
    public function getData(): array {
        return [ '**' => 'group' ] + $this->handle->getGroupIds();
    }
}