You are here

public function AttachedProcessor::applies in Cookie Content Blocker 8

Declares if the route processor applies to the given element.

Parameters

array $element: The element to process.

Return value

bool TRUE if the check applies, FALSE otherwise.

Overrides ElementProcessorBase::applies

File

src/ElementProcessor/AttachedProcessor.php, line 36

Class

AttachedProcessor
Class AttachedProcessor.

Namespace

Drupal\cookie_content_blocker\ElementProcessor

Code

public function applies(array $element) : bool {
  return !empty($element['#attached']['library']);
}