public function DemoContentParser::getPath in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.2 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.3 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.4 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.5 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.6 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.7 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 8.8 modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 10.3.x modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 10.0.x modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 10.1.x modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
- 10.2.x modules/custom/social_demo/src/DemoContentParser.php \Drupal\social_demo\DemoContentParser::getPath()
Returns the path for the given file.
Parameters
string $file: The filename.
string $module: The module where the Yaml file is placed.
string $profile: The profile used.
Return value
string String with the full pathname including the file.
Overrides DemoContentParserInterface::getPath
1 call to DemoContentParser::getPath()
- DemoContentParser::parseFileFromModule in modules/
custom/ social_demo/ src/ DemoContentParser.php - Parses YAML file into a PHP value.
File
- modules/
custom/ social_demo/ src/ DemoContentParser.php, line 17
Class
- DemoContentParser
- Class DemoContentParser.
Namespace
Drupal\social_demoCode
public function getPath($file, $module, $profile) {
if ($profile != '' && strpos($profile, DIRECTORY_SEPARATOR) === FALSE) {
$profile .= DIRECTORY_SEPARATOR;
}
return drupal_get_path('module', $module) . DIRECTORY_SEPARATOR . $profile . $file;
}