You are here

public function ParsedMarkdownInterface::getSize in Markdown 8.2

Retrieves the file size of the parsed HTML.

Parameters

bool $formatted: Flag indicating whether to retrieve the formatted, human-readable, file size.

int $decimals: The number of decimal points to use if $formatted is TRUE.

Return value

int|string The raw file size in bytes or the formatted human-readable file size.

1 method overrides ParsedMarkdownInterface::getSize()
ParsedMarkdown::getSize in src/Render/ParsedMarkdown.php
Retrieves the file size of the parsed HTML.

File

src/Render/ParsedMarkdownInterface.php, line 112

Class

ParsedMarkdownInterface
Interface parsed markdown instances.

Namespace

Drupal\markdown\Render

Code

public function getSize($formatted = FALSE, $decimals = 2);