Skip to content

Commit a522e6a

Browse files
[#82] Change the names of the library in apigee_api_catalog.libraries.yml
1 parent 87e6e08 commit a522e6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apigee_api_catalog.libraries.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SmartDocs Drupal Angular application.
2-
apigee_api_catalog.smartdocs:
2+
smartdocs:
33
version: 1.0.0
44
license:
55
name: Proprietary Google Code
@@ -17,7 +17,7 @@ apigee_api_catalog.smartdocs:
1717

1818
# Integration of SmartDocs Angular application with Drupal,
1919
# passes the OpenAPI spec URL to the SmartDocs ng app.
20-
apigee_api_catalog.smartdocs_integration:
20+
smartdocs_integration:
2121
version: VERSION
2222
js:
2323
js/smartdocs_integration.js: {}
@@ -26,7 +26,7 @@ apigee_api_catalog.smartdocs_integration:
2626
- core/drupal
2727

2828
# Library to parse OpenAPI YAML files to pass to SmartDocs Angular app.
29-
apigee_api_catalog.js_yaml:
29+
js_yaml:
3030
version: 3.13.1
3131
license:
3232
name: MIT

src/Plugin/Field/FieldFormatter/SmartDocsFormatter.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
131131

132132
$elements['#attached'] = [
133133
'library' => [
134-
'apigee_api_catalog/apigee_api_catalog.js_yaml',
135-
'apigee_api_catalog/apigee_api_catalog.smartdocs_integration',
136-
'apigee_api_catalog/apigee_api_catalog.smartdocs'
134+
'apigee_api_catalog/js_yaml',
135+
'apigee_api_catalog/smartdocs_integration',
136+
'apigee_api_catalog/smartdocs'
137137
],
138138
];
139139

0 commit comments

Comments
 (0)