You are here

public function AppCredentialControllerBase::setApiProductStatus in Apigee Edge 8

File

src/Entity/Controller/AppCredentialControllerBase.php, line 231

Class

AppCredentialControllerBase
Base class for developer- and company app credential controller services.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function setApiProductStatus(string $consumer_key, string $api_product, string $status) : void {
  $this
    ->decorated()
    ->setApiProductStatus($consumer_key, $api_product, $status);

  // By removing app from cache we force reload the credentials as well.
  $this->appCacheByOwner
    ->removeEntities([
    $this->appName,
  ]);
}