Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RecipeCommand.php

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\Recipe

Code

private function toPlainString(\Stringable|string $text) : string {
    return PlainTextOutput::renderFromHtml((string) $text);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal