NullPathProcessorManager.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/PathProcessor/NullPathProcessorManager.php
  2. 10 core/lib/Drupal/Core/PathProcessor/NullPathProcessorManager.php
  3. 11.x core/lib/Drupal/Core/PathProcessor/NullPathProcessorManager.php

Namespace

Drupal\Core\PathProcessor

File

core/lib/Drupal/Core/PathProcessor/NullPathProcessorManager.php

View source
<?php

namespace Drupal\Core\PathProcessor;

use Drupal\Core\Render\BubbleableMetadata;
use Symfony\Component\HttpFoundation\Request;

/**
 * Provides a null implementation of the path processor manager.
 *
 * This can be used for example in really early installer phases.
 */
class NullPathProcessorManager implements InboundPathProcessorInterface, OutboundPathProcessorInterface {
    
    /**
     * {@inheritdoc}
     */
    public function processInbound($path, Request $request) {
        return $path;
    }
    
    /**
     * {@inheritdoc}
     */
    public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
        return $path;
    }

}

Classes

Title Deprecated Summary
NullPathProcessorManager Provides a null implementation of the path processor manager.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.