function ConfirmClassyCopiesTest::providerTestClassyCopies

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php \Drupal\KernelTests\Core\Theme\ConfirmClassyCopiesTest::providerTestClassyCopies()

Provides lists of filenames for a theme's asset files copied from Classy.

Return value

array Theme name, how to replace a path to core assets and asset file names.

File

core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php, line 111

Class

ConfirmClassyCopiesTest
Confirms that theme assets copied from Classy have not been changed.

Namespace

Drupal\KernelTests\Core\Theme

Code

public function providerTestClassyCopies() {
    return [
        'umami' => [
            'theme-name' => 'umami',
            'path-replace' => '../../../../../../../',
            'filenames' => [
                'css' => [
                    'action-links.css',
                    'book-navigation.css',
                    'breadcrumb.css',
                    'button.css',
                    'collapse-processed.css',
                    'container-inline.css',
                    'details.css',
                    'dialog.css',
                    'dropbutton.css',
                    'exposed-filters.css',
                    'field.css',
                    'file.css',
                    'form.css',
                    'forum.css',
                    'icons.css',
                    'image-widget.css',
                    'inline-form.css',
                    'item-list.css',
                    'link.css',
                    'links.css',
                    'media-embed-error.css',
                    'media-library.css',
                    'menu.css',
                    'more-link.css',
                    'node.css',
                    'pager.css',
                    'progress.css',
                    'search-results.css',
                    'tabledrag.css',
                    'tableselect.css',
                    'tablesort.css',
                    'tabs.css',
                    'textarea.css',
                    'ui-dialog.css',
                    'user.css',
                ],
                'js' => [
                    'media_embed_ckeditor.theme.es6.js',
                    'media_embed_ckeditor.theme.js',
                ],
                'images' => [
                    'application-octet-stream.png',
                    'application-pdf.png',
                    'application-x-executable.png',
                    'audio-x-generic.png',
                    'forum-icons.png',
                    'image-x-generic.png',
                    'package-x-generic.png',
                    'text-html.png',
                    'text-plain.png',
                    'text-x-generic.png',
                    'text-x-script.png',
                    'video-x-generic.png',
                    'x-office-document.png',
                    'x-office-presentation.png',
                    'x-office-spreadsheet.png',
                ],
                'templates' => [
                    'node-edit-form.html.twig',
                    'image-widget.html.twig',
                    'node-add-list.html.twig',
                    'filter-guidelines.html.twig',
                    'filter-tips.html.twig',
                    'file-managed-file.html.twig',
                    'text-format-wrapper.html.twig',
                    'filter-caption.html.twig',
                    'rdf-metadata.html.twig',
                    'help-section.html.twig',
                    'progress-bar.html.twig',
                    'form-element-label.html.twig',
                    'datetime-wrapper.html.twig',
                    'fieldset.html.twig',
                    'datetime-form.html.twig',
                    'textarea.html.twig',
                    'details.html.twig',
                    'form-element.html.twig',
                    'radios.html.twig',
                    'item-list.html.twig',
                    'aggregator-feed.html.twig',
                    'item-list--search-results.html.twig',
                    'table.html.twig',
                    'forum-list.html.twig',
                    'forum-icon.html.twig',
                    'forums.html.twig',
                    'maintenance-page.html.twig',
                    'book-export-html.html.twig',
                    'html.html.twig',
                    'region.html.twig',
                    'book-all-books-block.html.twig',
                    'book-tree.html.twig',
                    'book-navigation.html.twig',
                    'toolbar.html.twig',
                    'comment.html.twig',
                    'taxonomy-term.html.twig',
                    'media-embed-error.html.twig',
                    'book-node-export-html.html.twig',
                    'links--node.html.twig',
                    'page-title.html.twig',
                    'search-result.html.twig',
                    'aggregator-item.html.twig',
                    'media.html.twig',
                    'mark.html.twig',
                    'forum-submitted.html.twig',
                    'username.html.twig',
                    'user.html.twig',
                    'time.html.twig',
                    'image.html.twig',
                    'field--text.html.twig',
                    'field--text-long.html.twig',
                    'file-audio.html.twig',
                    'field--comment.html.twig',
                    'link-formatter-link-separate.html.twig',
                    'field.html.twig',
                    'file-link.html.twig',
                    'field--text-with-summary.html.twig',
                    'field--node--uid.html.twig',
                    'field--node--title.html.twig',
                    'field--node--created.html.twig',
                    'file-video.html.twig',
                    'links--media-library-menu.html.twig',
                    'media--media-library.html.twig',
                    'views-view-unformatted--media-library.html.twig',
                    'container--media-library-content.html.twig',
                    'media-library-item--small.html.twig',
                    'container--media-library-widget-selection.html.twig',
                    'media-library-wrapper.html.twig',
                    'media-library-item.html.twig',
                    'views-mini-pager.html.twig',
                    'views-exposed-form.html.twig',
                    'views-view-grouping.html.twig',
                    'views-view-summary.html.twig',
                    'views-view-table.html.twig',
                    'views-view-row-rss.html.twig',
                    'views-view-summary-unformatted.html.twig',
                    'views-view.html.twig',
                    'block.html.twig',
                    'block--local-actions-block.html.twig',
                    'block--system-menu-block.html.twig',
                    'block--local-tasks-block.html.twig',
                ],
            ],
        ],
        'claro' => [
            'theme-name' => 'claro',
            'path-replace' => '../../../../../',
            'filenames' => [
                'css' => [
                    'book-navigation.css',
                    'container-inline.css',
                    'exposed-filters.css',
                    'field.css',
                    'file.css',
                    'forum.css',
                    'icons.css',
                    'indented.css',
                    'inline-form.css',
                    'item-list.css',
                    'link.css',
                    'links.css',
                    'media-embed-error.css',
                    'menu.css',
                    'more-link.css',
                    'node.css',
                    'search-results.css',
                    'tablesort.css',
                    'textarea.css',
                    'ui-dialog.css',
                ],
                'js' => [
                    'media_embed_ckeditor.theme.es6.js',
                    'media_embed_ckeditor.theme.js',
                ],
                'images' => [
                    'application-octet-stream.png',
                    'application-pdf.png',
                    'application-x-executable.png',
                    'audio-x-generic.png',
                    'forum-icons.png',
                    'image-x-generic.png',
                    'package-x-generic.png',
                    'text-html.png',
                    'text-plain.png',
                    'text-x-generic.png',
                    'text-x-script.png',
                    'video-x-generic.png',
                    'x-office-document.png',
                    'x-office-presentation.png',
                    'x-office-spreadsheet.png',
                ],
                'templates' => [
                    'filter-caption.html.twig',
                    'rdf-metadata.html.twig',
                    'help-section.html.twig',
                    'progress-bar.html.twig',
                    'textarea.html.twig',
                    'radios.html.twig',
                    'item-list.html.twig',
                    'aggregator-feed.html.twig',
                    'item-list--search-results.html.twig',
                    'table.html.twig',
                    'forum-list.html.twig',
                    'forum-icon.html.twig',
                    'forums.html.twig',
                    'book-export-html.html.twig',
                    'html.html.twig',
                    'region.html.twig',
                    'menu.html.twig',
                    'book-all-books-block.html.twig',
                    'book-tree.html.twig',
                    'book-navigation.html.twig',
                    'toolbar.html.twig',
                    'comment.html.twig',
                    'node.html.twig',
                    'taxonomy-term.html.twig',
                    'media-embed-error.html.twig',
                    'book-node-export-html.html.twig',
                    'links--node.html.twig',
                    'page-title.html.twig',
                    'search-result.html.twig',
                    'aggregator-item.html.twig',
                    'media.html.twig',
                    'mark.html.twig',
                    'forum-submitted.html.twig',
                    'username.html.twig',
                    'user.html.twig',
                    'time.html.twig',
                    'image.html.twig',
                    'field--text.html.twig',
                    'field--text-long.html.twig',
                    'file-audio.html.twig',
                    'field--comment.html.twig',
                    'link-formatter-link-separate.html.twig',
                    'field.html.twig',
                    'field--text-with-summary.html.twig',
                    'field--node--uid.html.twig',
                    'field--node--title.html.twig',
                    'field--node--created.html.twig',
                    'file-video.html.twig',
                    'links--media-library-menu.html.twig',
                    'media--media-library.html.twig',
                    'container--media-library-content.html.twig',
                    'media-library-item--small.html.twig',
                    'container--media-library-widget-selection.html.twig',
                    'media-library-wrapper.html.twig',
                    'media-library-item.html.twig',
                    'views-view-grouping.html.twig',
                    'views-view-summary.html.twig',
                    'views-view-table.html.twig',
                    'views-view-row-rss.html.twig',
                    'views-view-summary-unformatted.html.twig',
                    'views-view.html.twig',
                    'block--system-branding-block.html.twig',
                    'block--search-form-block.html.twig',
                    'block.html.twig',
                    'block--system-menu-block.html.twig',
                ],
            ],
        ],
        'seven' => [
            'theme-name' => 'seven',
            'path-replace' => '../../../../../',
            'filenames' => [
                'css' => [
                    'action-links.css',
                    'book-navigation.css',
                    'breadcrumb.css',
                    'button.css',
                    'collapse-processed.css',
                    'container-inline.css',
                    'dropbutton.css',
                    'exposed-filters.css',
                    'field.css',
                    'file.css',
                    'form.css',
                    'forum.css',
                    'icons.css',
                    'image-widget.css',
                    'indented.css',
                    'inline-form.css',
                    'item-list.css',
                    'link.css',
                    'links.css',
                    'media-embed-error.css',
                    'media-library.css',
                    'menu.css',
                    'messages.css',
                    'more-link.css',
                    'node.css',
                    'pager.css',
                    'progress.css',
                    'search-results.css',
                    'tabledrag.css',
                    'tableselect.css',
                    'tablesort.css',
                    'tabs.css',
                    'textarea.css',
                    'ui-dialog.css',
                    'user.css',
                ],
                'js' => [
                    'media_embed_ckeditor.theme.es6.js',
                    'media_embed_ckeditor.theme.js',
                ],
                'images' => [
                    'application-octet-stream.png',
                    'application-pdf.png',
                    'application-x-executable.png',
                    'audio-x-generic.png',
                    'forum-icons.png',
                    'image-x-generic.png',
                    'package-x-generic.png',
                    'text-html.png',
                    'text-plain.png',
                    'text-x-generic.png',
                    'text-x-script.png',
                    'video-x-generic.png',
                    'x-office-document.png',
                    'x-office-presentation.png',
                    'x-office-spreadsheet.png',
                ],
                'templates' => [
                    'filter-guidelines.html.twig',
                    'filter-tips.html.twig',
                    'file-managed-file.html.twig',
                    'text-format-wrapper.html.twig',
                    'filter-caption.html.twig',
                    'rdf-metadata.html.twig',
                    'help-section.html.twig',
                    'progress-bar.html.twig',
                    'status-messages.html.twig',
                    'form-element-label.html.twig',
                    'datetime-wrapper.html.twig',
                    'fieldset.html.twig',
                    'datetime-form.html.twig',
                    'textarea.html.twig',
                    'form-element.html.twig',
                    'radios.html.twig',
                    'item-list.html.twig',
                    'aggregator-feed.html.twig',
                    'item-list--search-results.html.twig',
                    'table.html.twig',
                    'forum-list.html.twig',
                    'forum-icon.html.twig',
                    'forums.html.twig',
                    'book-export-html.html.twig',
                    'html.html.twig',
                    'region.html.twig',
                    'menu.html.twig',
                    'book-all-books-block.html.twig',
                    'book-tree.html.twig',
                    'menu-local-task.html.twig',
                    'book-navigation.html.twig',
                    'breadcrumb.html.twig',
                    'toolbar.html.twig',
                    'comment.html.twig',
                    'node.html.twig',
                    'taxonomy-term.html.twig',
                    'media-embed-error.html.twig',
                    'book-node-export-html.html.twig',
                    'links--node.html.twig',
                    'page-title.html.twig',
                    'search-result.html.twig',
                    'aggregator-item.html.twig',
                    'media.html.twig',
                    'mark.html.twig',
                    'forum-submitted.html.twig',
                    'username.html.twig',
                    'user.html.twig',
                    'time.html.twig',
                    'image.html.twig',
                    'field--text.html.twig',
                    'field--text-long.html.twig',
                    'file-audio.html.twig',
                    'field--comment.html.twig',
                    'link-formatter-link-separate.html.twig',
                    'field.html.twig',
                    'file-link.html.twig',
                    'field--text-with-summary.html.twig',
                    'field--node--uid.html.twig',
                    'field--node--title.html.twig',
                    'field--node--created.html.twig',
                    'file-video.html.twig',
                    'links--media-library-menu.html.twig',
                    'media--media-library.html.twig',
                    'container--media-library-content.html.twig',
                    'media-library-item--small.html.twig',
                    'container--media-library-widget-selection.html.twig',
                    'media-library-wrapper.html.twig',
                    'media-library-item.html.twig',
                    'views-mini-pager.html.twig',
                    'views-exposed-form.html.twig',
                    'views-view-grouping.html.twig',
                    'views-view-summary.html.twig',
                    'views-view-table.html.twig',
                    'views-view-row-rss.html.twig',
                    'views-view-summary-unformatted.html.twig',
                    'views-view.html.twig',
                    'block--system-branding-block.html.twig',
                    'block--search-form-block.html.twig',
                    'block.html.twig',
                    'block--system-menu-block.html.twig',
                    'block--local-tasks-block.html.twig',
                ],
            ],
        ],
        // Will be populated when Classy libraries are copied to Bartik.
'bartik' => [
            'theme-name' => 'bartik',
            'path-replace' => '../../../../../',
            'filenames' => [
                'css' => [
                    'media-library.css',
                    'action-links.css',
                    'file.css',
                    'dropbutton.css',
                    'book-navigation.css',
                    'tableselect.css',
                    'ui-dialog.css',
                    'user.css',
                    'item-list.css',
                    'image-widget.css',
                    'field.css',
                    'tablesort.css',
                    'tabs.css',
                    'forum.css',
                    'progress.css',
                    'collapse-processed.css',
                    'details.css',
                    'inline-form.css',
                    'link.css',
                    'textarea.css',
                    'links.css',
                    'form.css',
                    'exposed-filters.css',
                    'tabledrag.css',
                    'indented.css',
                    'messages.css',
                    'pager.css',
                    'search-results.css',
                    'button.css',
                    'node.css',
                    'dialog.css',
                    'menu.css',
                    'icons.css',
                    'breadcrumb.css',
                    'media-embed-error.css',
                    'container-inline.css',
                    'more-link.css',
                ],
                'js' => [
                    'media_embed_ckeditor.theme.es6.js',
                    'media_embed_ckeditor.theme.js',
                ],
                'images' => [
                    'application-octet-stream.png',
                    'application-pdf.png',
                    'application-x-executable.png',
                    'audio-x-generic.png',
                    'forum-icons.png',
                    'image-x-generic.png',
                    'package-x-generic.png',
                    'text-html.png',
                    'text-plain.png',
                    'text-x-generic.png',
                    'text-x-script.png',
                    'video-x-generic.png',
                    'x-office-document.png',
                    'x-office-presentation.png',
                    'x-office-spreadsheet.png',
                ],
                'templates' => [
                    'node-edit-form.html.twig',
                    'image-widget.html.twig',
                    'node-add-list.html.twig',
                    'filter-guidelines.html.twig',
                    'filter-tips.html.twig',
                    'file-managed-file.html.twig',
                    'text-format-wrapper.html.twig',
                    'filter-caption.html.twig',
                    'rdf-metadata.html.twig',
                    'help-section.html.twig',
                    'progress-bar.html.twig',
                    'form-element-label.html.twig',
                    'datetime-wrapper.html.twig',
                    'fieldset.html.twig',
                    'datetime-form.html.twig',
                    'textarea.html.twig',
                    'details.html.twig',
                    'form-element.html.twig',
                    'radios.html.twig',
                    'item-list.html.twig',
                    'aggregator-feed.html.twig',
                    'item-list--search-results.html.twig',
                    'table.html.twig',
                    'forum-list.html.twig',
                    'forum-icon.html.twig',
                    'forums.html.twig',
                    'book-export-html.html.twig',
                    'html.html.twig',
                    'region.html.twig',
                    'menu.html.twig',
                    'book-all-books-block.html.twig',
                    'book-tree.html.twig',
                    'menu-local-task.html.twig',
                    'book-navigation.html.twig',
                    'breadcrumb.html.twig',
                    'toolbar.html.twig',
                    'menu-local-tasks.html.twig',
                    'taxonomy-term.html.twig',
                    'media-embed-error.html.twig',
                    'book-node-export-html.html.twig',
                    'links--node.html.twig',
                    'search-result.html.twig',
                    'aggregator-item.html.twig',
                    'media.html.twig',
                    'mark.html.twig',
                    'forum-submitted.html.twig',
                    'username.html.twig',
                    'user.html.twig',
                    'time.html.twig',
                    'image.html.twig',
                    'field--text.html.twig',
                    'field--text-long.html.twig',
                    'file-audio.html.twig',
                    'field--comment.html.twig',
                    'link-formatter-link-separate.html.twig',
                    'field.html.twig',
                    'file-link.html.twig',
                    'field--text-with-summary.html.twig',
                    'field--node--uid.html.twig',
                    'field--node--title.html.twig',
                    'field--node--created.html.twig',
                    'file-video.html.twig',
                    'links--media-library-menu.html.twig',
                    'media--media-library.html.twig',
                    'views-view-unformatted--media-library.html.twig',
                    'container--media-library-content.html.twig',
                    'media-library-item--small.html.twig',
                    'container--media-library-widget-selection.html.twig',
                    'media-library-wrapper.html.twig',
                    'media-library-item.html.twig',
                    'views-mini-pager.html.twig',
                    'views-exposed-form.html.twig',
                    'views-view-grouping.html.twig',
                    'views-view-summary.html.twig',
                    'views-view-table.html.twig',
                    'views-view-row-rss.html.twig',
                    'views-view-summary-unformatted.html.twig',
                    'views-view.html.twig',
                    'block--local-actions-block.html.twig',
                    'block--local-tasks-block.html.twig',
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.