/** * Get a directory to export entities of $entity_type to. * * @param string $entity_type * Type of entity we are exporting. * * @return string */ function getTypeDirectory(string $entity_type) { return ConfigManager::getDirectory() . strtolower($entity_type); }