WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpfd0d177b2d8140b4b20d4474b07b8ed7

Plugin_Locator::convert_plugins_to_paths() private WC 1.0

Given an array of plugin slugs or paths, this will convert them to absolute paths and filter out the plugins that are not directory plugins. Note that array keys will also be included if they are plugin paths!

{} It's a method of the class: Plugin_Locator{}

No Hooks.

Return

String[]. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->convert_plugins_to_paths( $plugins );
$plugins(string[]) (required)
Plugin paths or slugs to filter.

Code of Plugin_Locator::convert_plugins_to_paths() WC 5.3.0

<?php
private function convert_plugins_to_paths( $plugins ) {
	if ( ! is_array( $plugins ) || empty( $plugins ) ) {
		return array();
	}

	// We're going to look for plugins in the standard directories.
	$path_constants = array( WP_PLUGIN_DIR, WPMU_PLUGIN_DIR );

	$plugin_paths = array();
	foreach ( $plugins as $key => $value ) {
		$path = $this->path_processor->find_directory_with_autoloader( $key, $path_constants );
		if ( $path ) {
			$plugin_paths[] = $path;
		}

		$path = $this->path_processor->find_directory_with_autoloader( $value, $path_constants );
		if ( $path ) {
			$plugin_paths[] = $path;
		}
	}

	return $plugin_paths;
}