toolbox = $toolbox; $this->actionsMenu = $actionsMenu; $this->pinnableHeader = $pinnableHeader; $this->skin = $skin; } /** * @inheritDoc */ public function getTemplateData(): array { $menusData = [ $this->toolbox, $this->actionsMenu ]; $pinnableDropdownData = [ 'id' => 'vector-page-tools', 'class' => 'vector-page-tools', 'label' => $this->skin->msg( 'toolbox' ), 'has-multiple-menus' => true, 'data-pinnable-header' => $this->pinnableHeader->getTemplateData(), 'data-menus' => $menusData ]; return $pinnableDropdownData; } }