You are here

protected function TeamAppFormTrait::appCredentialLifeTime in Apigee Edge 8

File

modules/apigee_edge_teams/src/Entity/Form/TeamAppFormTrait.php, line 95

Class

TeamAppFormTrait
Helper trait that contains team app (create/edit) form specific tweaks.

Namespace

Drupal\apigee_edge_teams\Entity\Form

Code

protected function appCredentialLifeTime() : int {
  $config_name = 'apigee_edge_teams.team_app_settings';
  $config = method_exists($this, 'config') ? $this
    ->config($config_name) : \Drupal::config($config_name);
  return $config
    ->get('credential_lifetime');
}