You are here

interface PageProcessorInterface in Mini site 8

Interface PageProcessorInterface.

@package Drupal\minisite

Hierarchy

Expanded class hierarchy of PageProcessorInterface

All classes that implement PageProcessorInterface

File

src/PageProcessorInterface.php, line 10

Namespace

Drupal\minisite
View source
interface PageProcessorInterface {

  /**
   * Extensions to be considered as non-HTML documents.
   *
   * Links for such documents may be rewritten in a different way than other
   * files.
   */
  const EXTENSIONS_NON_HTML_DOCUMENTS = 'pdf doc docx ppt pptx xls xlsx tif xml txt';

  /**
   * Process document.
   */
  public function process();

  /**
   * Get content of the document being processed.
   *
   * @return string
   *   The document content as HTML.
   */
  public function content();

  /**
   * Check if the provxided URL is a non-HTML document.
   *
   * @param string $url
   *   URL to assess.
   *
   * @return string
   *   TRUE if the provided URL is a non-HTML document, FALSE otherwise.
   */
  public static function urlIsDocumentFile($url);

}

Members

Namesort descending Modifiers Type Description Overrides
PageProcessorInterface::content public function Get content of the document being processed. 1
PageProcessorInterface::EXTENSIONS_NON_HTML_DOCUMENTS constant Extensions to be considered as non-HTML documents.
PageProcessorInterface::process public function Process document. 1
PageProcessorInterface::urlIsDocumentFile public static function Check if the provxided URL is a non-HTML document. 1