You are here

public static function ElevateZoomPlus::defaultSettings in ElevateZoom Plus 7

Returns available slick default options under group 'settings'.

Return value

array The default settings under options.

Overrides SlickBase::defaultSettings

6 calls to ElevateZoomPlus::defaultSettings()
ElevateZoomPlus::create in src/Entity/ElevateZoomPlus.php
Returns a new optionset object without saving it to the database.
ElevateZoomPlus::typecast in src/Entity/ElevateZoomPlus.php
Returns the typecast values.
ElevateZoomPlusForm::edit_form_submit in modules/ui/src/Form/ElevateZoomPlusForm.php
Handle the submission of the edit form.
ElevateZoomPlusForm::getFormElements in modules/ui/src/Form/ElevateZoomPlusForm.php
Defines available options.
ElevateZoomPlusForm::typecastOptionset in modules/ui/src/Form/ElevateZoomPlusForm.php
Returns the typecast values.

... See full list

File

src/Entity/ElevateZoomPlus.php, line 72

Class

ElevateZoomPlus
Defines the ElevateZoomPlus configuration entity.

Namespace

Drupal\elevatezoomplus\Entity

Code

public static function defaultSettings() {
  if (!isset(static::$defaultSettings)) {
    static::$defaultSettings = [
      'responsive' => FALSE,
      'zoomType' => 'window',
      'zoomWindowWidth' => 400,
      'zoomWindowHeight' => 400,
      'zoomWindowOffsetX' => 0,
      'zoomWindowOffsetY' => 0,
      'zoomWindowPosition' => '1',
      'zoomWindowFadeIn' => FALSE,
      'zoomWindowFadeOut' => FALSE,
      'zoomTintFadeIn' => FALSE,
      'zoomTintFadeOut' => FALSE,
      'scrollZoom' => FALSE,
      'easing' => FALSE,
      'easingType' => 'zoomdefault',
      'easingDuration' => 2000,
      'borderSize' => 4,
      'borderColour' => '#888',
      'showLens' => TRUE,
      'containLensZoom' => FALSE,
      'lensBorder' => 1,
      'lensShape' => 'square',
      'lensSize' => 200,
      'lensFadeIn' => FALSE,
      'lensFadeOut' => FALSE,
      'lensColour' => 'white',
      'lensOpacity' => 0.4,
      'lenszoom' => FALSE,
      'tint' => FALSE,
      'tintColour' => '#333',
      'tintOpacity' => 0.4,
      'constrainType' => '',
      'constrainSize' => '',
      'imageCrossfade' => FALSE,
      'cursor' => 'default',
      'loadingIcon' => '',
    ];
  }
  return static::$defaultSettings;
}