You are here

public function TextimageFactoryInterface::processTextString in Textimage 8.3

Same name and namespace in other branches
  1. 8.4 src/TextimageFactoryInterface.php \Drupal\textimage\TextimageFactoryInterface::processTextString()

Processes text string, detokenises and applies case conversion.

@todo The $case_format parameter is deprecated, remove in a future major.

Parameters

string $text: The input string containing unresolved tokens.

string $case_format: A text conversion option.

array $token_data: (optional) Token data to be passed to Token::replace.

\Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) A BubbleableMetadata object to collect cacheability metadata from the token replacement process.

Return value

string The processed text string.

1 method overrides TextimageFactoryInterface::processTextString()
TextimageFactory::processTextString in src/TextimageFactory.php
Processes text string, detokenises and applies case conversion.

File

src/TextimageFactoryInterface.php, line 54

Class

TextimageFactoryInterface
Provides an interface for TextimageFactory.

Namespace

Drupal\textimage

Code

public function processTextString($text, $case_format, array $token_data = [], BubbleableMetadata $bubbleable_metadata = NULL);