function MockPathLocator::getVendorDirectory

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/modules/package_manager_bypass/src/MockPathLocator.php \Drupal\package_manager_bypass\MockPathLocator::getVendorDirectory()
1 call to MockPathLocator::getVendorDirectory()
MockPathLocator::getProjectRoot in core/modules/package_manager/tests/modules/package_manager_bypass/src/MockPathLocator.php

File

core/modules/package_manager/tests/modules/package_manager_bypass/src/MockPathLocator.php, line 53

Class

MockPathLocator
Mock path locator: allows specifying paths instead of discovering paths.

Namespace

Drupal\package_manager_bypass

Code

public function getVendorDirectory() : string {
  return $this->state
    ->get(static::class . ' vendor', parent::getVendorDirectory());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.