Skip to content
Snippets Groups Projects
Commit 9ab0f736 authored by Wim Leers's avatar Wim Leers
Browse files

Issue #3493388 by wim leers, mglaman, f.mazeikis: Remove pointless asset...

Issue #3493388 by wim leers, mglaman, f.mazeikis: Remove pointless asset library dependencies/overrides on `core/once`
parent ac5ae1d8
No related branches found
No related tags found
1 merge request!468Resolve #3493388 "Remove pointless core once deps"
Pipeline #366894 failed
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Hero
description: A Hero section with inline styles for testing purposes
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Section
description: A text/image section with inline styles for testing purposes
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
......@@ -31,6 +31,7 @@ function xb_test_page_xb_page_view(array &$build): void {
$build['#attached']['drupalSettings']['xb_test_page'] = [
'foo' => 'Bar',
];
$build['#attached']['library'][] = 'core/drupalSettings';
$build['xb_test_page_markup'] = [
'#markup' => '<div id="xb-test-page-markup">xb_test_page_xb_page_view markup</div>',
];
......
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Hero
description: A test component with props but no slots
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Hero
description: A test component with props but no slots
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Hero
description: A test component with props but no slots
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
name: Hero
description: A test component with props and slots
libraryOverrides:
dependencies:
- core/once
props:
type: object
required:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment