public function CurrentPathContext::__construct in Rules 8.3
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;
}