You are here

interface ElementProcessorInterface in Cookie Content Blocker 8

Interface ElementProcessorInterface.

@package Drupal\cookie_content_blocker

Hierarchy

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_blocker
View 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

Namesort descending Modifiers Type Description Overrides
ElementProcessorInterface::applies public function Declares if the route processor applies to the given element. 1
ElementProcessorInterface::processElement public function Processes the element. 1