You are here

function ui_patterns_library_info_build in UI Patterns 8

Implements hook_library_info_build().

File

./ui_patterns.module, line 34
Contains ui_patterns.module.

Code

function ui_patterns_library_info_build() {

  /** @var \Drupal\ui_patterns\Plugin\PatternBase $pattern */
  $definitions = [];
  foreach (UiPatterns::getManager()
    ->getPatterns() as $pattern) {
    $definitions += $pattern
      ->getLibraryDefinitions();
  }
  return $definitions;
}