private function getAliasString()
{
if ($this->createAliasMethod) {
$string = $this->owner->{$this->createAliasMethod}();
if (!is_string($string)) {
throw new \Exception(Yii::t('app', 'Invalid image alias'));
} else {
return $string;
}
} else {
return substr(md5(microtime()), 0, 10);
}
}