You are here

public function AppCredentialControllerBase::updateAttribute in Apigee Edge 8

File

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

Class

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

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function updateAttribute(string $entity_id, string $name, string $value) : string {
  $value = $this
    ->decorated()
    ->updateAttribute($entity_id, $name, $value);

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