public static function ConfigBit::doWeHaveThisConfigBit in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x
Same name and namespace in other branches
- 8.8 src/Config/ConfigBit.php \Drupal\varbase\Config\ConfigBit::doWeHaveThisConfigBit()
- 8.4 src/Config/ConfigBit.php \Drupal\varbase\config\ConfigBit::doWeHaveThisConfigBit()
- 8.5 src/Config/ConfigBit.php \Drupal\varbase\config\ConfigBit::doWeHaveThisConfigBit()
- 8.6 src/Config/ConfigBit.php \Drupal\varbase\config\ConfigBit::doWeHaveThisConfigBit()
- 8.7 src/Config/ConfigBit.php \Drupal\varbase\config\ConfigBit::doWeHaveThisConfigBit()
Do we have this cofnigbit file.
Parameters
string $config_bit_file_name: Config bit file name in the root configbit folder.
string $type: Config bit file source type (profile / module).
string $project: Config bit file source eg. varbase.
Return value
boolan True/False if the file exists.
File
- src/
Config/ ConfigBit.php, line 631
Class
- ConfigBit
- Class ConfigBit.
Namespace
Drupal\varbase\ConfigCode
public static function doWeHaveThisConfigBit($config_bit_file_name, $type = 'profile', $project = 'varbase') {
// Generate full path to config file.
$full_config_bit_file_name = drupal_get_path($type, $project) . '/' . $config_bit_file_name;
return file_exists($full_config_bit_file_name);
}