public function MoxtraConnector::prefix in Opigno Moxtra 8
Same name and namespace in other branches
- 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
Namespace
Drupal\opigno_moxtraCode
public function prefix($account) {
$prefix = $this->keyValueStorage
->get('prefix');
$prefix = !empty($prefix) ? $prefix . '_' : '';
return $this
->isManager($account) ? 'm_' . $prefix : $prefix;
}