ElementProcessorBase.php in Cookie Content Blocker 8
File
src/ElementProcessor/ElementProcessorBase.php
View source
<?php
namespace Drupal\cookie_content_blocker\ElementProcessor;
use Drupal\cookie_content_blocker\ElementProcessorInterface;
use Drupal\Core\Security\TrustedCallbackInterface;
abstract class ElementProcessorBase implements ElementProcessorInterface, TrustedCallbackInterface {
public abstract function applies(array $element) : bool;
public abstract function processElement(array $element) : array;
public static function trustedCallbacks() : array {
return [
'processElement',
];
}
}