Skip to content

Latest commit

 

History

History
148 lines (95 loc) · 3.02 KB

TextToCodeBlock.md

File metadata and controls

148 lines (95 loc) · 3.02 KB

BumbleDocGen / Technical description of the project / Class map / TextToCodeBlock


namespace BumbleDocGen\Core\Renderer\Twig\Filter;

final class TextToCodeBlock implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterface
Convert text to code block

Settings:

name value
Filter name: textToCodeBlock

Methods:

  1. __invoke
  2. getName
  3. getOptions

Method details:

public function __invoke(string $text, string $codeBlockType): string;

Parameters:

Name Type Description
$text string Processed text
$codeBlockType string Code block type (e.g. php or console )

Return value: string


public static function getName(): string;

Parameters: not specified

Return value: string


public static function getOptions(): array;

Parameters: not specified

Return value: array