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

Breadcrumb

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

function CollectionConfigurator::__destruct

File

vendor/symfony/routing/Loader/Configurator/CollectionConfigurator.php, line 49

Class

CollectionConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\Routing\Loader\Configurator

Code

public function __destruct() {
    if (null === $this->prefixes) {
        $this->collection
            ->addPrefix($this->route
            ->getPath());
    }
    if (null !== $this->host) {
        $this->addHost($this->collection, $this->host);
    }
    $this->parent
        ->addCollection($this->collection);
}
RSS feed
Powered by Drupal