public function ViewportResolver::__construct in Viewport 8
Creates a new ViewportResolver.
Parameters
\Drupal\Core\Path\PathMatcherInterface $pathMatcher: A path matcher service.
\Drupal\Core\Path\CurrentPathStack $currentPathStack: The current path stack.
\Drupal\Core\Config\ConfigFactoryInterface $configFactoryInterface: The configuration factory interface.
File
- src/
ViewportResolver.php, line 45
Class
- ViewportResolver
- Provides a ViewportResolver.
Namespace
Drupal\viewportCode
public function __construct(PathMatcherInterface $pathMatcher, CurrentPathStack $currentPathStack, ConfigFactoryInterface $configFactoryInterface) {
$this->pathMatcher = $pathMatcher;
$this->currentPathStack = $currentPathStack;
$this->viewportSettings = $configFactoryInterface
->get('viewport.settings');
}