BumbleDocGen / Technical description of the project / Configuration files / TextToHeading
TextToHeading class:
namespace BumbleDocGen\Core\Renderer\Twig\Filter;
final class TextToHeading implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterfaceConvert text to html header
| name | value |
|---|---|
| Filter name: | textToHeading |
- # __invoke | source code
public function __invoke(string $text, string $headingType): string;Parameters:
| Name | Type | Description |
|---|---|---|
| $text | string | - |
| $headingType | string | Choose heading type: H1, H2, H3 |
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