Skip to content

Latest commit

 

History

History
153 lines (100 loc) · 3.26 KB

AddIndentFromLeft.md

File metadata and controls

153 lines (100 loc) · 3.26 KB

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


namespace BumbleDocGen\Core\Renderer\Twig\Filter;

final class AddIndentFromLeft implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterface
Filter adds indent from left

Settings:

name value
Filter name: addIndentFromLeft

Methods:

  1. __invoke
  2. getName
  3. getOptions

Method details:

public function __invoke(string $text, int $identLength = 4, bool $skipFirstIdent = false): string;

Parameters:

Name Type Description
$text string Processed text
$identLength int Indent size
$skipFirstIdent bool Skip indent for first line in text or not

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