You are here

public function FieldRedirectionResultBuilder::__construct in Field Redirection 8.2

Constructs a new FieldRedirectionResultBuilder.

Parameters

\Drupal\Core\Path\PathMatcherInterface $pathMatcher: Path matcher.

\Drupal\Core\Utility\Token $token: Token service.

\Drupal\Core\State\StateInterface $state: State service.

File

src/FieldRedirectionResultBuilder.php, line 63

Class

FieldRedirectionResultBuilder
Defines a service for evaluating the intended action for a field redirection.

Namespace

Drupal\field_redirection

Code

public function __construct(PathMatcherInterface $pathMatcher, Token $token, StateInterface $state) {
  $this->pathMatcher = $pathMatcher;
  $this->token = $token;
  $this->state = $state;
}