WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\PerformanceIndicators

Controller::get_active_jetpack_modules() public WC 1.0

Get active Jetpack modules.

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

No Hooks.

Return

Array. List of active Jetpack module slugs.

Usage

$Controller = new Controller();
$Controller->get_active_jetpack_modules();

Code of Controller::get_active_jetpack_modules() WC 5.3.0

<?php
public function get_active_jetpack_modules() {
	if ( is_null( $this->active_jetpack_modules ) ) {
		if ( class_exists( '\Jetpack' ) && method_exists( '\Jetpack', 'get_active_modules' ) ) {
			$active_modules               = \Jetpack::get_active_modules();
			$this->active_jetpack_modules = is_array( $active_modules ) ? $active_modules : array();
		} else {
			$this->active_jetpack_modules = array();
		}
	}

	return $this->active_jetpack_modules;
}