function CurrentPathContext::__construct
Constructs a new CurrentPathContext.
Parameters
\Drupal\Core\Path\CurrentPathStack $current_path_stack: The current path stack service.
File
-
src/
ContextProvider/ CurrentPathContext.php, line 32
Class
- CurrentPathContext
- Makes the current path available as a context variable.
Namespace
Drupal\rules\ContextProviderCode
public function __construct(CurrentPathStack $current_path_stack) {
$this->currentPathStack = $current_path_stack;
}