You are here

protected function DeveloperAppFormTrait::appCredentialLifeTime in Apigee Edge 8

File

src/Entity/Form/DeveloperAppFormTrait.php, line 104

Class

DeveloperAppFormTrait
Helper trait that contains developer app (create/edit) form specific tweaks.

Namespace

Drupal\apigee_edge\Entity\Form

Code

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