You are here

trait DeveloperAppCredentialFormTrait in Apigee Edge 8

Provides form trait for developer app credential.

Hierarchy

File

src/Form/DeveloperAppCredentialFormTrait.php, line 27

Namespace

Drupal\apigee_edge\Form
View source
trait DeveloperAppCredentialFormTrait {

  /**
   * {@inheritdoc}
   */
  protected function appCredentialController(string $owner, string $app_name) : AppCredentialControllerInterface {
    return \Drupal::service('apigee_edge.controller.developer_app_credential_factory')
      ->developerAppCredentialController($owner, $app_name);
  }

  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return $this->app
      ->toUrl('canonical-by-developer');
  }

}

Members