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

Breadcrumb

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

function DescriptorHelper::__construct

File

vendor/symfony/console/Helper/DescriptorHelper.php, line 35

Class

DescriptorHelper
This class adds helper method to describe objects in various formats.

Namespace

Symfony\Component\Console\Helper

Code

public function __construct() {
    $this->register('txt', new TextDescriptor())
        ->register('xml', new XmlDescriptor())
        ->register('json', new JsonDescriptor())
        ->register('md', new MarkdownDescriptor())
        ->register('rst', new ReStructuredTextDescriptor());
}

API Navigation

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