runner = $runner; $this->post_type_helper = $post_type_helper; $this->options_helper = $options_helper; } /** * Returns a configuration * * @return array|array>>> */ public function get_configuration(): array { $this->runner->run(); $configuration = [ 'generationFailure' => ! $this->runner->is_successful(), 'generationFailureReason' => $this->runner->get_generation_failure_reason(), 'llmsTxtUrl' => \home_url( 'llms.txt' ), 'disabledPageIndexables' => ( $this->post_type_helper->is_of_indexable_post_type( 'page' ) === false ), 'otherIncludedPagesLimit' => $this->options_helper->get_other_included_pages_limit(), ]; return $configuration; } }