You are here

protected function LibraryDeriver::getDirectories in Gin Layout Builder 8.2

Create a list of all directories to scan.

This includes all module directories and directories of the default theme and all of its possible base themes.

Return value

array An array containing directory paths keyed by their extension name.

1 call to LibraryDeriver::getDirectories()
LibraryDeriver::getPatterns in modules/wingsuit_ui_patterns/src/Plugin/Deriver/LibraryDeriver.php
Get pattern definition objects.

File

modules/wingsuit_ui_patterns/src/Plugin/Deriver/LibraryDeriver.php, line 203

Class

LibraryDeriver
Class LibraryDeriver.

Namespace

Drupal\wingsuit_ui_patterns\Plugin\Deriver

Code

protected function getDirectories() {
  $dist_path = $this->config
    ->get('dist_path');
  $directories['wingsuit'] = realpath($dist_path);
  return $directories;
}