You are here

protected function Exporter::isCli in Default Content for D8 8

Returns whether the current PHP process runs on CLI.

Return value

bool

2 calls to Exporter::isCli()
Exporter::exportContent in src/Exporter.php
Exports a single entity as importContent expects it.
Exporter::exportContentWithReferences in src/Exporter.php
Exports a single entity and all its referenced entity.

File

src/Exporter.php, line 309

Class

Exporter
A service for handling import of default content.

Namespace

Drupal\default_content

Code

protected function isCli() {
  return PHP_SAPI === 'cli';
}