You are here

private function SpecFetcher::isPrivateFileSystemConfigured in Apigee API Catalog 8.2

Same name and namespace in other branches
  1. 8 src/SpecFetcher.php \Drupal\apigee_api_catalog\SpecFetcher::isPrivateFileSystemConfigured()

Checks whether the private filesystem is configured.

Return value

bool True if configured, FALSE otherwise.

1 call to SpecFetcher::isPrivateFileSystemConfigured()
SpecFetcher::checkRequirements in src/SpecFetcher.php
Checks requirements for saving of a file spec.

File

src/SpecFetcher.php, line 244

Class

SpecFetcher
Class SpecFetcher.

Namespace

Drupal\apigee_api_catalog

Code

private function isPrivateFileSystemConfigured() : bool {
  return (bool) $this->fileSystem
    ->realpath('private://');
}