You are here

public function MoxtraConnector::prefix in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/MoxtraConnector.php \Drupal\opigno_moxtra\MoxtraConnector::prefix()

Build Moxtra users prefix.

1 call to MoxtraConnector::prefix()
MoxtraConnector::getToken in src/MoxtraConnector.php
Build Moxtra access token.

File

src/MoxtraConnector.php, line 148

Class

MoxtraConnector

Namespace

Drupal\opigno_moxtra

Code

public function prefix($account) {
  $prefix = $this->keyValueStorage
    ->get('prefix');
  $prefix = !empty($prefix) ? $prefix . '_' : '';
  return $this
    ->isManager($account) ? 'm_' . $prefix : $prefix;
}