You are here

private function Lazy::isNotSkipping in Lazy-load 8.3

Skip lazy-loading?

Returns true if the image does not have the skip class name.

Parameters

array $attributes: Element attributes array. i.e. `$variables['attributes']`.

Return value

bool Returns true if the element is NOT skipped.

1 call to Lazy::isNotSkipping()
Lazy::isEnabled in src/Lazy.php
Is Lazy-load enabled?

File

src/Lazy.php, line 173

Class

Lazy
Lazy-load service.

Namespace

Drupal\lazy

Code

private function isNotSkipping(array $attributes = []) : bool {
  $classes = $attributes['class'] ?? [];
  return !in_array($this->lazySettings['skipClass'], $classes, TRUE);
}