interface ElementProcessorInterface in Cookie Content Blocker 8
Interface ElementProcessorInterface.
@package Drupal\cookie_content_blocker
Hierarchy
- interface \Drupal\cookie_content_blocker\ElementProcessorInterface
Expanded class hierarchy of ElementProcessorInterface
All classes that implement ElementProcessorInterface
2 files declare their use of ElementProcessorInterface
- ElementProcessor.php in src/
ElementProcessor/ ElementProcessor.php - ElementProcessorBase.php in src/
ElementProcessor/ ElementProcessorBase.php
File
- src/
ElementProcessorInterface.php, line 10
Namespace
Drupal\cookie_content_blockerView source
interface ElementProcessorInterface {
/**
* Declares if the route processor applies to the given element.
*
* @param array $element
* The element to process.
*
* @return bool
* TRUE if the check applies, FALSE otherwise.
*/
public function applies(array $element) : bool;
/**
* Processes the element.
*
* @param array $element
* The element to process.
*
* @return array
* The processed element.
*/
public function processElement(array $element) : array;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ElementProcessorInterface:: |
public | function | Declares if the route processor applies to the given element. | 1 |
ElementProcessorInterface:: |
public | function | Processes the element. | 1 |