I hereby claim:
- I am luksak on github.
- I am luksak (https://keybase.io/luksak) on keybase.
- I have a public key ASCVyVO6w7PLYj5V7NCSUux55vky4dMp5t5JhPf8Qyipiwo
To claim this, I am signing this object:
| export default defineNuxtPlugin((NuxtApp) => { | |
| const state = useGraphqlState() | |
| const event = useRequestEvent() | |
| if (!state) { | |
| return | |
| } | |
| state.fetchOptions = { | |
| onResponse ({ request, response, options }) { |
| <?php | |
| /* | |
| * Implements hook_preprocess_HOOK(). | |
| */ | |
| function hook_preprocess_views_view_unformatted__VIEW_ID(&$variables) { | |
| $entity_ids = []; | |
| foreach ($variables['rows'] as $key => $row) { | |
| $entity = $row['content']['#row']->_entity; | |
| $id = $entity->id(); |
| <?php | |
| /* | |
| * Implements hook_preprocess_HOOK(). | |
| */ | |
| function THEME_preprocess_node(&$variables) { | |
| $url = Url::fromRoute('entity.node.canonical', array('node' => $variables['node']->id())); | |
| $variables['url'] = $url; | |
| } |
| /** | |
| * Implements hook_token_info_alter(). | |
| */ | |
| function base_url_token_token_info_alter(&$data) { | |
| if (isset($data['tokens']['site'])) { | |
| $data['tokens']['site']['base-url'] = [ | |
| 'name' => t("Base URL"), | |
| 'description' => t("The site's base URL"), | |
| ]; | |
| } |
| <?php | |
| namespace Drupal\MODULE\EventSubscriber; | |
| use Drupal\commerce_order\Entity\Order; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Drupal\commerce_cart\Event\CartEntityAddEvent; | |
| use Drupal\commerce_cart\Event\CartEvents; | |
| use Drupal\Core\StringTranslation\StringTranslationTrait; | |
| use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
| <?php | |
| namespace Drupal\MODULE\Plugin\Commerce\CheckoutPane; | |
| use Drupal\commerce_shipping\Entity\ShipmentInterface; | |
| use Drupal\commerce_shipping\Entity\ShippingMethod; | |
| use Drupal\commerce_shipping\Plugin\Commerce\CheckoutPane\ShippingInformation; | |
| use Drupal\Core\Entity\Entity\EntityFormDisplay; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
I hereby claim:
To claim this, I am signing this object:
| <html> | |
| <body> | |
| <h1>hello!</h1> | |
| </body> | |
| </html> |