You are here

protected function BlazyUnitTestTrait::getEmptyBreakpoints in Blazy 8

Add empty data for breakpoints.

Return value

array The dummy breakpoints.

1 call to BlazyUnitTestTrait::getEmptyBreakpoints()
BlazyManagerUnitTest::providerTestCleanUpBreakpoints in tests/src/Unit/BlazyManagerUnitTest.php
Provider for ::testCleanUpBreakpoints().

File

tests/src/Traits/BlazyUnitTestTrait.php, line 28

Class

BlazyUnitTestTrait
A Trait common for Blazy Unit tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function getEmptyBreakpoints() {
  $build = [];
  foreach (BlazyDefault::getConstantBreakpoints() as $breakpoint) {
    $build[$breakpoint]['image_style'] = '';
    $build[$breakpoint]['width'] = '';
  }
  return $build;
}