public function ElementProcessor::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
1 call to ElementProcessor::applies()
- ElementProcessor::processElement in src/
ElementProcessor/ ElementProcessor.php - Processes the element.
File
- src/
ElementProcessor/ ElementProcessor.php, line 50
Class
- ElementProcessor
- Class ElementProcessor.
Namespace
Drupal\cookie_content_blocker\ElementProcessorCode
public function applies(array $element) : bool {
return !empty($element['#cookie_content_blocker']);
}