WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Marketing::component_settings() public WC 1.0

Add settings for marketing feature.

{} It's a method of the class: Marketing{}

No Hooks.

Return

Array. Nothing.

Usage

$Marketing = new Marketing();
$Marketing->component_settings( $settings );
$settings(array) (required)
Component settings.

Code of Marketing::component_settings() WC 5.3.0

<?php
public function component_settings( $settings ) {
	// Bail early if not on a wc-admin powered page.
	if ( ! Loader::is_admin_page() ) {
		return $settings;
	}

	$settings['marketing']['installedExtensions'] = InstalledExtensions::get_data();

	return $settings;
}