Skip to content

Instantly share code, notes, and snippets.

@bookworm2000
bookworm2000 / html.html.twig
Created March 24, 2021 18:02
Boosting Layout Builder Under the Hood
<!DOCTYPE html>
<html{{ html_attributes }}>
<head>
<title>{{ head_title }}</title>
{% if primary_webfont_url|length %}
<link rel="stylesheet prefetch" media="screen" href="{{ primary_webfont_url }}">
<style type="text/css">
:root {
--ff__serif: '{{ primary_webfont_family }}', {{ primary_webfont_type }};
@bookworm2000
bookworm2000 / SpecialWidget.php
Last active February 21, 2020 02:15
Example custom module to override votingapi_widgets classes
<?php
declare(strict_types = 1);
namespace Drupal\mymodule\Plugin\votingapi_widget;
use Drupal\votingapi_widgets\Plugin\VotingApiWidgetBase;
/**
* Custom widget for voting.