Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Base.php

function Base::__construct

Class constructor

Parameters

bool $renderComments True to render the comments if: the parser has collected them and the formatter allows their rendering

File

vendor/mck89/peast/lib/Peast/Formatter/Base.php, line 90

Class

Base
Base class for formatters, all the formatters must extend this class.

Namespace

Peast\Formatter

Code

public function __construct($renderComments = false) {
    if ($this->renderComments) {
        $this->renderComments = $renderComments;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal