No dates announced yet:
- KubeCon
- ReactConf
Event | Date |
---|---|
Gatsby Days LA | February 3 |
Startup Grind Global SF | February 11-12 |
#!/bin/bash | |
## | |
# Script to crawl Drupal JSON:API endpoint to local filesystem. | |
# | |
# Assumes endpoint to be /jsonapi and uses basic auth. | |
# | |
# Requirements: | |
# ag - https://github.com/ggreer/the_silver_searcher | |
# jq - https://github.com/stedolan/jq |
exports.createResolvers = ({ actions, getCache, createNodeId, createResolvers }) => { | |
const { createNode } = actions | |
createResolvers({ | |
Drupal_MediaImage: { | |
gatsbyImageFile: { | |
type: `File`, | |
resolve(source) { | |
return createRemoteFileNode({ |
const path = require("path"); | |
const { createRemoteFileNode } = require(`gatsby-source-filesystem`); | |
// GraphQL Schema customization to download and attach images to GraphQL node | |
exports.createResolvers = ( | |
{ | |
actions, | |
cache, | |
createNodeId, | |
createResolvers, |
No dates announced yet:
Event | Date |
---|---|
Gatsby Days LA | February 3 |
Startup Grind Global SF | February 11-12 |
<?php | |
namespace Drupal\jsonapi_custom\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Drupal\jsonapi_extras\EntityToJsonApi; |
<?php | |
declare(strict_types = 1); | |
namespace Drupal\module_name\Plugin\jsonapi\FieldEnhancer; | |
use Drupal\Component\Render\PlainTextOutput; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\Core\Utility\Token; | |
use Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerBase; |
import React from 'react' | |
import { StaticQuery, graphql } from 'gatsby' | |
import Layout from '../components/templates/layout' | |
import Home from '../components/templates/home' | |
const dateFormat = require('date-fns/format') | |
const IndexPage = () => ( | |
<StaticQuery | |
query={graphql` |
export const query = graphql` | |
query($slug: String!) { | |
site { | |
siteMetadata { | |
domain | |
} | |
} | |
allSiteSettingEntitySite { | |
edges { | |
node { |
<?php | |
namespace Drupal\module_name\Plugin\jsonapi\FieldEnhancer; | |
use Drupal\Core\Url; | |
use Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerBase; | |
use Shaper\Util\Context; | |
/** | |
* Use alias for internal link field value. |
<?php | |
$nodeManager = \Drupal::entityTypeManager()->getStorage('node'); | |
$nodes = \Drupal::entityTypeManager() | |
->getStorage('node') | |
->loadByProperties([ | |
'type' => 'landing' | |
]); |