You are here

TagProcessorInterface.php in Extensible BBCode 8.3

Same filename and directory in other branches
  1. 4.0.x src/Parser/Processor/TagProcessorInterface.php

File

src/Parser/Processor/TagProcessorInterface.php
View source
<?php

namespace Drupal\xbbcode\Parser\Processor;

use Drupal\xbbcode\Parser\Tree\OutputElementInterface;
use Drupal\xbbcode\Parser\Tree\TagElementInterface;

/**
 * Encapsulates the processing functionality of a tag plugin.
 */
interface TagProcessorInterface {

  /**
   * Process a tag match.
   *
   * @param \Drupal\xbbcode\Parser\Tree\TagElementInterface $tag
   *   The tag to be rendered.
   *
   * @return \Drupal\xbbcode\Parser\Tree\OutputElementInterface
   *   The rendered output.
   */
  public function process(TagElementInterface $tag) : OutputElementInterface;

}

Interfaces

Namesort descending Description
TagProcessorInterface Encapsulates the processing functionality of a tag plugin.