languagesHelper = $languagesHelper; parent::__construct( $title, $msgLocalizer, $permissions ); } /** * @inheritDoc */ public function getGroup( array $toolbox, array $actions ): Group { $group = parent::getGroup( $toolbox, $actions ); if ( $this->isAllowed( IMinervaPagePermissions::SWITCH_LANGUAGE ) ) { $group->prependEntry( new LanguageSelectorEntry( $this->getTitle(), $this->languagesHelper->doesTitleHasLanguagesOrVariants( $this->getTitle() ), $this->getMessageLocalizer(), false, // no additional classes '', 'minerva-page-actions-language-switcher' ) ); } return $group; } }