You are here

public function EmberBlock::attachLibraries in Decoupled Blocks 8

Attaches any libraries required by the component.

Parameters

array $component: The component definition.

Return value

array Array of attachments.

Overrides PdbBlock::attachLibraries

File

modules/pdb_ember/src/Plugin/Block/EmberBlock.php, line 62

Class

EmberBlock
Exposes an Ember component as a block.

Namespace

Drupal\pdb_ember\Plugin\Block

Code

public function attachLibraries(array $component) {
  return [
    'library' => [
      'pdb_ember/ember',
      'pdb_ember/app',
    ],
  ];
}