Skip to content

Commit

Permalink
Just override activate()
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Sep 24, 2024
1 parent b089cb0 commit 8d3bb08
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions integrations/enterprise-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ class EnterpriseSearchIntegration extends Integration {
* this function to prevent loading of integration again from platform side.
*/
public function is_loaded(): bool {
return false; // Set to false for now.
return class_exists( \Automattic\VIP\Search\Search::class );
}

public function is_active(): bool {
return false; // Set to false for now.
/**
* Activates this integration with given options array.
*
* @param array $options An associative options array for the integration.
* This can contain common parameters and integration specific parameters in `config` key.
*
* @private
*/
public function activate( array $options = [] ): void {
// Do nothing for now.
}


Expand Down

0 comments on commit 8d3bb08

Please sign in to comment.