You are here

public static function BlazyDefault::entitySettings in Blazy 8

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

Returns sensible default options common for entities lacking of UI.

5 calls to BlazyDefault::entitySettings()
BlazyManagerTest::testBuildAttributes in tests/src/Kernel/BlazyManagerTest.php
Tests building Blazy attributes.
BlazyUnitTest::testBuildAttributes in tests/src/Unit/BlazyUnitTest.php
Tests building Blazy attributes.
BlazyUnitTest::testBuildIframeAttributes in tests/src/Unit/BlazyUnitTest.php
Tests \Drupal\blazy\Blazy\buildIframeAttributes.
BlazyViewsFieldPluginBase::mergedViewsSettings in src/Plugin/views/field/BlazyViewsFieldPluginBase.php
Merges the settings.
BlazyViewsTest::render in tests/modules/blazy_test/src/Plugin/views/style/BlazyViewsTest.php
Overrides StylePluginBase::render().

File

src/BlazyDefault.php, line 165

Class

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

Namespace

Drupal\blazy

Code

public static function entitySettings() {
  return [
    'iframe_lazy' => TRUE,
    'media_switch' => 'media',
    'rendered' => FALSE,
    'view_mode' => 'default',
    '_detached' => TRUE,
  ] + self::lazySettings();
}