You are here

public function Gauth::getServices in Google Auth 8

2 calls to Gauth::getServices()
Gauth::getServiceObjects in src/Entity/Gauth.php
This function is designed to return objects of services classes.
Gauth::save in src/Entity/Gauth.php

File

src/Entity/Gauth.php, line 168

Class

Gauth
Defines the Gauth entity.

Namespace

Drupal\gauth\Entity

Code

public function getServices() {
  $services = $this
    ->get('services')
    ->getValue();
  $return = [];
  foreach ($services as $key => $service) {
    $return[$key] = $service['value'];
  }
  return $return;
}