You are here

public function PhpFileLibrary::getPhpFiles in Libraries API 8.3

Returns the PHP files of this library.

Return value

string[] An array of absolute file paths of PHP files.

Overrides PhpFileLibraryInterface::getPhpFiles

File

src/ExternalLibrary/PhpFile/PhpFileLibrary.php, line 53

Class

PhpFileLibrary
Provides a base PHP file library implementation.

Namespace

Drupal\libraries\ExternalLibrary\PhpFile

Code

public function getPhpFiles() {
  if (!$this
    ->isInstalled()) {
    throw new LibraryNotInstalledException($this);
  }
  $processed_files = [];
  foreach ($this->files as $file) {
    $processed_files[] = $this
      ->getLocalPath() . '/' . $file;
  }
  return $processed_files;
}