Yoast\WP\SEO\Dashboard\Application\Configuration
Dashboard_Configuration::get_configuration()
Returns a configuration
Метод класса: Dashboard_Configuration{}
Хуков нет.
Возвращает
Массив<Строку,Массив<Строку>>
.
Использование
$Dashboard_Configuration = new Dashboard_Configuration(); $Dashboard_Configuration->get_configuration(): array;
Код Dashboard_Configuration::get_configuration() Dashboard Configuration::get configuration Yoast 24.4
public function get_configuration(): array { return [ 'contentTypes' => $this->content_types_repository->get_content_types(), 'indexablesEnabled' => $this->indexable_helper->should_index_indexables(), 'displayName' => $this->user_helper->get_current_user_display_name(), 'enabledAnalysisFeatures' => $this->enabled_analysis_features_repository->get_features_by_keys( [ Readability_Analysis::NAME, Keyphrase_Analysis::NAME, ] )->to_array(), 'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(), 'nonce' => $this->nonce_repository->get_rest_nonce(), ]; }