BumbleDocGen / Technical description of the project / Class map / TextToCodeBlock
TextToCodeBlock class:
namespace BumbleDocGen\Core\Renderer\Twig\Filter;
final class TextToCodeBlock implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterface
Convert text to code block
name | value |
---|---|
Filter name: | textToCodeBlock |
- # __invoke | source code
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
- # getName | source code
public static function getName(): string;
Parameters: not specified
Return value: string
- # getOptions | source code
public static function getOptions(): array;
Parameters: not specified
Return value: array