host = $host; return $this; } public function setup() { $this->addStandaloneSubmitButton(sprintf( $this->translate('Drop Self Service API key'), $this->host->getObjectName() )); } public function onSuccess() { $this->host->set('api_key', null)->store(); $this->redirectOnSuccess(sprintf($this->translate( 'The Self Service API key for %s has been dropped' ), $this->host->getObjectName())); } }