options_helper = $options_helper; $this->endpoints_repository = $endpoints_repository; } /** * Returns a configuration * * @return array|array>>> */ public function get_configuration(): array { $configuration = [ 'enabled' => $this->options_helper->get( 'enable_task_list', true ), 'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(), ]; return $configuration; } }