active = $active; } public function detect(): array { $active = $this->active ?? (array) get_option( 'active_plugins', array() ); if ( $this->active === null && is_multisite() ) { $active = array_merge( $active, array_keys( (array) get_site_option( 'active_sitewide_plugins', array() ) ) ); } $provider = null; foreach ( self::PLUGINS as $file ) { if ( in_array( $file, $active, true ) ) { $provider = $file; break; } } return array( 'nodes' => array( new Node( 'system:backup', 'backup', 'system', 'Backup coverage', 'unknown', 0, array( 'detected' => $provider !== null, 'provider_file' => $provider ) ) ), 'edges' => array() ); } }