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

Breadcrumb

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

interface WrappableOutputFormatterInterface

Formatter interface for console output that supports word wrapping.

@author Roland Franssen <franssen.roland@gmail.com>

Hierarchy

  • interface \Symfony\Component\Console\Formatter\OutputFormatterInterface
    • interface \Symfony\Component\Console\Formatter\WrappableOutputFormatterInterface extends \Symfony\Component\Console\Formatter\OutputFormatterInterface

Expanded class hierarchy of WrappableOutputFormatterInterface

All classes that implement WrappableOutputFormatterInterface

1 file declares its use of WrappableOutputFormatterInterface
Table.php in vendor/symfony/console/Helper/Table.php

File

vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php, line 19

Namespace

Symfony\Component\Console\Formatter
View source
interface WrappableOutputFormatterInterface extends OutputFormatterInterface {
    
    /**
     * Formats a message according to the given styles, wrapping at `$width` (0 means no wrapping).
     */
    public function formatAndWrap(?string $message, int $width) : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
OutputFormatterInterface::format public function Formats a message according to the given styles. 2
OutputFormatterInterface::getStyle public function Gets style options from style with specified name. 2
OutputFormatterInterface::hasStyle public function Checks if output formatter has style with specified name. 2
OutputFormatterInterface::isDecorated public function Whether the output will decorate messages. 2
OutputFormatterInterface::setDecorated public function Sets the decorated flag. 2
OutputFormatterInterface::setStyle public function Sets a new style. 2
WrappableOutputFormatterInterface::formatAndWrap public function Formats a message according to the given styles, wrapping at `$width` (0 means no wrapping). 1

API Navigation

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