You are here

public function EmberBlock::attachFramework in Decoupled Blocks 8

Attaches the framework required by the component.

Parameters

array $component: The component definition.

Return value

array Array of attachments.

Overrides PdbBlock::attachFramework

File

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

Class

EmberBlock
Exposes an Ember component as a block.

Namespace

Drupal\pdb_ember\Plugin\Block

Code

public function attachFramework(array $component) {
  $attached = [];
  $attached['drupalSettings']['ember']['global_injectables'] = [];
  return $attached;
}