You are here

public static function BlazyDefault::uiSettings in Blazy 7

Same name and namespace in other branches
  1. 8.2 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::uiSettings()
  2. 8 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::uiSettings()

Returns shared global form settings which should be consumed at formatters.

3 calls to BlazyDefault::uiSettings()
BlazyDefault::formSettings in src/BlazyDefault.php
Returns blazy UI settings for typecasting, done via config schema at D8.
BlazyDefault::htmlSettings in src/BlazyDefault.php
Returns sensible default container settings to shutup notices when lacking.
BlazyManagerBase::getCommonSettings in src/BlazyManagerBase.php
Returns the common settings inherited down to each item.

File

src/BlazyDefault.php, line 161

Class

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

Namespace

Drupal\blazy

Code

public static function uiSettings() {
  return [
    'one_pixel' => TRUE,
    'native' => TRUE,
    'placeholder' => '',
    'responsive_image' => FALSE,
  ] + self::anywhereSettings();
}