public function Password::getSummary in Feeds 8.3
Returns the summary for a target.
Returning the summary as array is encouraged. The allowance of returning a string only exists for backwards compatibility.
Return value
string|string[] The configuration summary.
Overrides FieldTargetBase::getSummary
File
- src/
Feeds/ Target/ Password.php, line 154
Class
- Password
- Defines a password field mapper.
Namespace
Drupal\feeds\Feeds\TargetCode
public function getSummary() {
$summary = parent::getSummary();
switch ($this->configuration['pass_encryption']) {
case static::PASS_UNENCRYPTED:
$summary[] = $this
->t('Passwords are in plain text format.');
break;
case static::PASS_MD5:
$summary[] = $this
->t('Passwords are in MD5 format.');
break;
case static::PASS_SHA512:
$summary[] = $this
->t('Passwords are pre-hashed.');
break;
}
return $summary;
}