Skip to content

Latest commit

 

History

History
148 lines (95 loc) · 3.01 KB

File metadata and controls

148 lines (95 loc) · 3.01 KB

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\CustomFilterInterface
Convert text to html header

Settings:

name value
Filter name: textToHeading

Methods:

  1. __invoke
  2. getName
  3. getOptions

Method details:

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


public static function getName(): string;

Parameters: not specified

Return value: string


public static function getOptions(): array;

Parameters: not specified

Return value: array