You are here

public static function BlazyDefault::itemSettings in Blazy 7

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

Returns sensible default html settings to shutup notices when lacking.

2 calls to BlazyDefault::itemSettings()
BlazyManager::getBlazy in src/BlazyManager.php
Returns the enforced content, or image using theme_blazy().
template_preprocess_blazy in ./blazy.theme.inc
Prepares variables for theme_blazy().

File

src/BlazyDefault.php, line 185

Class

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

Namespace

Drupal\blazy

Code

public static function itemSettings() {
  return [
    'content_url' => '',
    'delta' => 0,
    'embed_url' => '',
    'entity_type_id' => '',
    'icon' => '',
    'image_url' => '',
    'item_id' => 'blazy',
    'lazy_attribute' => 'src',
    'lazy_class' => 'b-lazy',
    'padding_bottom' => '',
    'picture' => FALSE,
    'player' => FALSE,
    'scheme' => '',
    'type' => 'image',
    'uri' => '',
    'use_data_uri' => FALSE,
    'thumbnail_uri' => '',
    'use_field' => FALSE,
    'use_image' => TRUE,
    'use_loading' => TRUE,
    'use_media' => FALSE,
    'height' => NULL,
    'width' => NULL,
  ] + self::htmlSettings();
}