function entity_legal_page_attachments_alter in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 entity_legal.module \entity_legal_page_attachments_alter()
- 4.0.x entity_legal.module \entity_legal_page_attachments_alter()
Implements hook_page_attachments_alter().
File
- ./
entity_legal.module, line 22 - Entity Legal module.
Code
function entity_legal_page_attachments_alter(array &$attachments) {
$context = [
'attachments' => &$attachments,
];
// Execute Popup method plugin.
\Drupal::service('plugin.manager.entity_legal')
->createInstance('popup')
->execute($context);
}