BumbleDocGen / Technical description of the project / Class map / LanguageHandlerInterface
LanguageHandlerInterface class:
namespace BumbleDocGen\LanguageHandler;
interface LanguageHandlerInterface
- getCustomTwigFilters - Additional twig filters that are added to the built-in ones when a language handler is included
- getCustomTwigFunctions - Additional twig functions that are added to the built-in ones when a language handler is included
- getEntityCollection
- getLanguageKey - Unique language handler key
- # getCustomTwigFilters | source code
public function getCustomTwigFilters(\BumbleDocGen\Core\Renderer\Context\RendererContext $context): \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFiltersCollection;
Additional twig filters that are added to the built-in ones when a language handler is included
Parameters:
Name | Type | Description |
---|---|---|
$context | \BumbleDocGen\Core\Renderer\Context\RendererContext | - |
Return value: \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFiltersCollection
- # getCustomTwigFunctions | source code
public function getCustomTwigFunctions(\BumbleDocGen\Core\Renderer\Context\RendererContext $context): \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionsCollection;
Additional twig functions that are added to the built-in ones when a language handler is included
Parameters:
Name | Type | Description |
---|---|---|
$context | \BumbleDocGen\Core\Renderer\Context\RendererContext | - |
Return value: \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionsCollection
- # getEntityCollection | source code
public function getEntityCollection(): \BumbleDocGen\Core\Parser\Entity\RootEntityCollection;
Parameters: not specified
Return value: \BumbleDocGen\Core\Parser\Entity\RootEntityCollection
- # getLanguageKey | source code
public static function getLanguageKey(): string;
Unique language handler key
Parameters: not specified
Return value: string