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

Breadcrumb

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

function HelperSet::set

1 call to HelperSet::set()
HelperSet::__construct in vendor/symfony/console/Helper/HelperSet.php

File

vendor/symfony/console/Helper/HelperSet.php, line 38

Class

HelperSet
HelperSet represents a set of helpers to be used with a command.

Namespace

Symfony\Component\Console\Helper

Code

public function set(HelperInterface $helper, ?string $alias = null) : void {
    $this->helpers[$helper->getName()] = $helper;
    if (null !== $alias) {
        $this->helpers[$alias] = $helper;
    }
    $helper->setHelperSet($this);
}
RSS feed
Powered by Drupal