public function FeaturesManagerInterface::listPackageDirectories in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesManagerInterface.php \Drupal\features\FeaturesManagerInterface::listPackageDirectories()
Lists directories in which packages are present.
This method scans to find package modules whether or not they are currently active (installed). As well as the directories that are usually scanned for modules and profiles, a profile directory for the current profile is scanned if it exists. For example, if the value for $bundle->getProfileName() is 'example', a directory profiles/example will be scanned if it exists. Therefore, when regenerating package modules, existing ones from a prior export will be recognized.
Parameters
string[] $machine_names: Package machine names to return directories for. If omitted, return all directories.
\Drupal\features\FeaturesBundleInterface $bundle: Optional bundle to use to add profile directories to the scan.
Return value
array Array of package directories keyed by package machine name.
1 method overrides FeaturesManagerInterface::listPackageDirectories()
- FeaturesManager::listPackageDirectories in src/
FeaturesManager.php - Lists directories in which packages are present.
File
- src/
FeaturesManagerInterface.php, line 336
Class
- FeaturesManagerInterface
- Provides an interface for the FeaturesManager.
Namespace
Drupal\featuresCode
public function listPackageDirectories(array $machine_names = [], FeaturesBundleInterface $bundle = NULL);