private function Importer::getPathToFileByName in Default Content Deploy 8
Get path to file by Name.
Parameters
$name:
Return value
false|int|string
1 call to Importer::getPathToFileByName()
- Importer::getReferences in src/
Importer.php - Get all reference by entity array content.
File
- src/
Importer.php, line 552
Class
- Importer
- A service for handling import of default content.
Namespace
Drupal\default_content_deployCode
private function getPathToFileByName($name) {
$array_column = array_column($this->files, 'name', 'uri');
return array_search($name . '.json', $array_column);
}