Yoast\WP\SEO\Llms_Txt\Application\Configuration

Llms_Txt_Configuration::get_configurationpublicYoast 1.0

Returns a configuration

Метод класса: Llms_Txt_Configuration{}

Хуков нет.

Возвращает

Массив<Строку,. array<string>|array<string, string|array<string, array<string, int>>>>

Использование

$Llms_Txt_Configuration = new Llms_Txt_Configuration();
$Llms_Txt_Configuration->get_configuration(): array;

Код Llms_Txt_Configuration::get_configuration() Yoast 27.7

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;
}