public function PathMapping::__construct in Gatsby Live Preview & Incremental Builds 8
Same name and namespace in other branches
- 2.0.x src/PathMapping.php \Drupal\gatsby\PathMapping::__construct()
Constructs a new PathMapping object.
Parameters
\Drupal\path_alias\AliasManagerInterface $pathAliasManager: Path alias manager.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.
File
- src/
PathMapping.php, line 36
Class
- PathMapping
- Defines a class for mapping paths between Drupal and Gatsby.
Namespace
Drupal\gatsbyCode
public function __construct(AliasManagerInterface $pathAliasManager, ConfigFactoryInterface $configFactory) {
$this->pathAliasManager = $pathAliasManager;
$this->configFactory = $configFactory;
}