You are here

protected function FocalPointEffectBase::getPreviewValue in Focal Point 8

Get the 'focal_point_preview_value' query string value.

@codeCoverageIgnore

Return value

string|null Safely return the value of the focal_point_preview_value query string if it exists.

1 call to FocalPointEffectBase::getPreviewValue()
FocalPointEffectBase::getOriginalFocalPoint in src/FocalPointEffectBase.php
Returns the focal point value (in pixels) relative to the original image.
1 method overrides FocalPointEffectBase::getPreviewValue()
TestFocalPointEffectBase::getPreviewValue in tests/src/Unit/Effects/FocalPointEffectsTest.php
Get the preview value.

File

src/FocalPointEffectBase.php, line 422

Class

FocalPointEffectBase
Provides a base class for image effects.

Namespace

Drupal\focal_point

Code

protected function getPreviewValue() {
  return $this->request->query
    ->get('focal_point_preview_value');
}