<?php /** * @file * BaseLinker module functions. */ /** * Implements hook_cron(). */ function bb2b_baselinker_cron() { /** @var \Drupal\bb2b_baselinker\SyncService $sync_service */ $sync_service = \Drupal::service('bb2b_baselinker.sync_service'); $sync_service->getOrders(); $sync_service->addProduct(); } /** * Implements hook_theme(). */ function bb2b_baselinker_theme($existing, $type, $theme, $path) { return [ 'belmilb2b_baselinker_pdf' => [ 'variables' => [ 'title' => '', 'order' => [], 'order_total_paid' => '', 'currency' => '', ], ], ]; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter