You are here

protected function FeedsExJmesPath::generateCompileDirectory in Feeds extensible parsers 7

Generates a directory path to store auto-generated PHP files.

Return value

string A temp directory path.

1 call to FeedsExJmesPath::generateCompileDirectory()
FeedsExJmesPath::getCompileDirectory in src/FeedsExJmesPath.inc
Returns the compilation directory.

File

src/FeedsExJmesPath.inc, line 66
Contains FeedsExJmesPath.

Class

FeedsExJmesPath
Parses JSON documents with JMESPath.

Code

protected function generateCompileDirectory() {

  // A random prefix to store the generated files.
  $prefix = drupal_base64_encode(drupal_random_bytes(40));
  return file_directory_temp() . '/' . $prefix . '_feeds_ex_jmespath_dir';
}