public function PatternDefinition::getLibrariesNames in UI Patterns 8
Getter.
Return value
mixed Property value.
File
- src/
Definition/ PatternDefinition.php, line 523
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function getLibrariesNames() {
$libraries = [];
foreach ($this
->getLibraries() as $library) {
if (is_array($library)) {
$libraries[] = self::LIBRARY_PREFIX . '/' . $this
->id() . '.' . key($library);
}
else {
$libraries[] = $library;
}
}
return $libraries;
}