function RecipeCommand::toPlainString
Converts a stringable like TranslatableMarkup to a plain text string.
Parameters
\Stringable|string $text: The string to convert.
Return value
string The plain text string.
1 call to RecipeCommand::toPlainString()
- RecipeCommand::execute in core/
lib/ Drupal/ Core/ Recipe/ RecipeCommand.php - Executes the current command.
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeCommand.php, line 149
Class
- RecipeCommand
- Applies recipe.
Namespace
Drupal\Core\RecipeCode
private function toPlainString(\Stringable|string $text) : string {
return PlainTextOutput::renderFromHtml((string) $text);
}