You are here

public static function BlazyDefault::formSettings in Blazy 7

Returns blazy UI settings for typecasting, done via config schema at D8.

4 calls to BlazyDefault::formSettings()
BlazyManager::config in src/BlazyManager.php
Returns any config, or keyed by the $key.
BlazyManager::typecast in src/BlazyManager.php
Typecast the needed settings, blazy-related module can override.
BlazySettingsForm::submitForm in modules/blazy_ui/src/Form/BlazySettingsForm.php
Implements \Drupal\Core\Form\FormInterface::submitForm().
blazy_install in ./blazy.install
Implements hook_install().

File

src/BlazyDefault.php, line 238

Class

BlazyDefault
Defines shared plugin default settings for field formatter and Views style.

Namespace

Drupal\blazy

Code

public static function formSettings() {
  return [
    'admin_css' => TRUE,
    'unbreakpoints' => FALSE,
    'visibility' => 0,
    'pages' => static::PAGES,
    'extras' => [],
    'blazy' => [
      'loadInvisible' => FALSE,
      'offset' => 100,
      'saveViewportOffsetDelay' => 50,
      'validateDelay' => 25,
      'container' => '',
    ],
    'io' => [
      'enabled' => FALSE,
      'unblazy' => FALSE,
      'disconnect' => FALSE,
      'rootMargin' => '0px',
      'threshold' => '0',
    ],
    'filters' => [
      'column' => TRUE,
      'grid' => TRUE,
      'media_switch' => '',
      'use_data_uri' => FALSE,
    ],
  ] + self::uiSettings();
}