protected function RetinaImageEffectTrait::getMultiplier in Retina Images 8
Get the multiplier for this effect.
Return value
int The mutiplier to be used for this effect.
1 call to RetinaImageEffectTrait::getMultiplier()
- RetinaImageEffectTrait::multiplyDimension in src/
RetinaImageEffectTrait.php - Multiply a dimension by the specified resolution multiplier.
File
- src/
RetinaImageEffectTrait.php, line 58 - Provides shared helpers for all retina image effects.
Class
- RetinaImageEffectTrait
- Provides shared helpers for all retina image effects.
Namespace
Drupal\retina_imagesCode
protected function getMultiplier() {
if (isset($this->configuration['multiplier'])) {
return $this->configuration['multiplier'];
}
else {
return $this->defaultMultiplier;
}
}