public function networkActive(bool $slugify = true): array
    {
        $cache_key = '_'.(int) $slugify; // Network wide.

        if (isset(static::$cache[__FUNCTION__][$cache_key])) {
            return static::$cache[__FUNCTION__][$cache_key];
        }
        if (!$this->Wp->is_multisite) { // Not applicable.
            return static::$cache[__FUNCTION__][$cache_key] = [];
        }
        $network_active = get_network_option(null, 'active_sitewide_plugins');
        $network_active = is_array($network_active) ? $network_active : [];
        $network_active = array_keys($network_active);

        if ($slugify) { // Slugs w/ basename keys.
            $network_active = $this->s::pluginSlugs($network_active);
        }
        return static::$cache[__FUNCTION__][$cache_key] = $network_active;
    }
public function networkActive(bool $slugify = true): array
    {
        $cache_key = '_'.(int) $slugify; // Network wide.

        if (isset(static::$cache[__FUNCTION__][$cache_key])) {
            return static::$cache[__FUNCTION__][$cache_key];
        }
        if (!$this->Wp->is_multisite) { // Not applicable.
            return static::$cache[__FUNCTION__][$cache_key] = [];
        }
        $network_active = get_network_option(null, 'active_sitewide_plugins');
        $network_active = is_array($network_active) ? $network_active : [];
        $network_active = array_keys($network_active);

        if ($slugify) { // Slugs w/ basename keys.
            $network_active = $this->s::pluginSlugs($network_active);
        }
        return static::$cache[__FUNCTION__][$cache_key] = $network_active;
    }
public function networkActive ( bool $ slugify = true ) : array { $ cache_key = '_' . ( int ) $ slugify ; // Network wide. if ( isset ( static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] ) ) { return static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] ; } if ( ! $ this -> Wp -> is_multisite ) { // Not applicable. return static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] = [ ] ; } $ network_active = get_network_option ( null , 'active_sitewide_plugins' ) ; $ network_active = is_array ( $ network_active ) ? $ network_active : [ ] ; $ network_active = array_keys ( $ network_active ) ; if ( $ slugify ) { // Slugs w/ basename keys. $ network_active = $ this -> s :: pluginSlugs ( $ network_active ) ; } return static :: $ cache [ __FUNCTION__ ] [ $ cache_key ] = $ network_active ; }
Network-active plugins.

@since 160524 First documented version.

@param bool $slugify Slugs w/ basename keys?

@internal If false you'll get numerically indexed basenames.

@return array Network-active plugin basenames.
Network - active plugins .