public function PdbBlockTest::attachLibrariesProvider in Decoupled Blocks 8
Provider for testAttachLibraries().
File
- tests/
src/ Unit/ Plugin/ Block/ PdbBlockTest.php, line 172
Class
- PdbBlockTest
- @coversDefaultClass \Drupal\pdb\Plugin\Block\PdbBlock @group pdb
Namespace
Drupal\Tests\pdb\Unit\Plugin\BlockCode
public function attachLibrariesProvider() {
return [
[
[
'add_js' => [
'header' => [
'example-1.js' => [],
],
],
],
[
'pdb/example-1/header',
],
],
[
[
'add_css' => [
'header' => [
'example-1.css' => [],
],
],
],
[
'pdb/example-1/header',
],
],
[
[
'add_css' => [
'header' => [
'example-1.css' => [],
],
],
'add_js' => [
'header' => [
'example-1.js' => [],
],
],
],
[
'pdb/example-1/header',
],
],
[
[
'add_js' => [
'footer' => [
'example-1.js' => [],
],
],
],
[
'pdb/example-1/footer',
],
],
[
[
'add_css' => [
'footer' => [
'example-1.css' => [],
],
],
],
[
'pdb/example-1/footer',
],
],
[
[
'add_css' => [
'footer' => [
'example-1.css' => [],
],
],
'add_js' => [
'footer' => [
'example-1.js' => [],
],
],
],
[
'pdb/example-1/footer',
],
],
[
[
'add_css' => [
'header' => [
'example-1.css' => [],
],
'footer' => [
'example-1.css' => [],
],
],
'add_js' => [
'header' => [
'example-1.js' => [],
],
'footer' => [
'example-1.js' => [],
],
],
],
[
'pdb/example-1/header',
'pdb/example-1/footer',
],
],
[
[
'add_css' => [
'header' => [
'css' => [
'example-1.css' => [],
],
'dependencies' => [
'pdb/example-2/header',
],
],
'footer' => [
'css' => [
'example-1.css' => [],
],
'dependencies' => [
'pdb/example-2/footer',
],
],
],
'add_js' => [
'header' => [
'js' => [
'example-1.js' => [],
],
'dependencies' => [
'pdb/example-2/header',
],
],
'footer' => [
'js' => [
'example-1.js' => [],
],
'dependencies' => [
'pdb/example-2/footer',
],
],
],
],
[
'pdb/example-1/header',
'pdb/example-1/footer',
],
],
];
}