public function Lazy::isEnabled in Lazy-load 8.3
Is Lazy-load enabled?
Parameters
array $attributes: Element attributes, specifically for the "class".
Return value
bool Returns true if the path is not restricted, and skip class is not set. FALSE otherwise.
Overrides LazyInterface::isEnabled
File
- src/
Lazy.php, line 123
Class
- Lazy
- Lazy-load service.
Namespace
Drupal\lazyCode
public function isEnabled(array $attributes = []) : bool {
return $this
->isPathAllowed() && $this
->isNotSkipping($attributes);
}