abstract class ElementProcessorBase in Cookie Content Blocker 8
Class ElementProcessorBase.
A base for Cookie content blocker element processors.
@package Drupal\cookie_content_blocker\ElementProcessor
Hierarchy
- class \Drupal\cookie_content_blocker\ElementProcessor\ElementProcessorBase implements ElementProcessorInterface, TrustedCallbackInterface
Expanded class hierarchy of ElementProcessorBase
File
- src/
ElementProcessor/ ElementProcessorBase.php, line 15
Namespace
Drupal\cookie_content_blocker\ElementProcessorView source
abstract class ElementProcessorBase implements ElementProcessorInterface, TrustedCallbackInterface {
/**
* {@inheritdoc}
*/
public abstract function applies(array $element) : bool;
/**
* {@inheritdoc}
*/
public abstract function processElement(array $element) : array;
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() : array {
return [
'processElement',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ElementProcessorBase:: |
abstract public | function |
Declares if the route processor applies to the given element. Overrides ElementProcessorInterface:: |
3 |
ElementProcessorBase:: |
abstract public | function |
Processes the element. Overrides ElementProcessorInterface:: |
3 |
ElementProcessorBase:: |
public static | function |
Lists the trusted callbacks provided by the implementing class. Overrides TrustedCallbackInterface:: |
|
TrustedCallbackInterface:: |
constant | Untrusted callbacks throw exceptions. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger E_USER_WARNING errors. |