I hereby claim:
- I am daggerhart on github.
- I am daggerhart (https://keybase.io/daggerhart) on keybase.
- I have a public key ASBwqCcP5IkAcu6ev0rhQh5FPl9XHC15g1Qva3B3uZ7Sjgo
To claim this, I am signing this object:
<?php | |
namespace Drupal\ocf_integration_webform\Plugin\WebformElement; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\webform\Element\WebformAjaxElementTrait; | |
use Drupal\webform\Plugin\WebformElementBase; | |
use Symfony\Component\HttpFoundation\Request; | |
/** |
name: "Setup Runner" | |
description: "Provides SSH, PHP, Terminus as a composite action" | |
inputs: | |
pantheon_ssh_key: | |
description: 'Pantheon SSH Private key in the PEM format.' | |
required: true | |
ssh_config: | |
description: 'Contents of the ssh/config file.' | |
required: true |
<?php | |
namespace Drupal\mymodule\EventSubscriber; | |
use Drupal\Core\StringTranslation\StringTranslationTrait; | |
use Drupal\Core\Utility\Token as TokenService; | |
use Drupal\core_event_dispatcher\Event\Token\TokensInfoEvent; | |
use Drupal\core_event_dispatcher\Event\Token\TokensReplacementEvent; | |
use Drupal\core_event_dispatcher\ValueObject\Token; | |
use Drupal\core_event_dispatcher\ValueObject\TokenType; |
<?php | |
namespace Drupal\my_module\Plugin\views\style; | |
use Drupal\facets_rest\Plugin\views\style\FacetsSerializer; | |
/** | |
* The style plugin for serialized output formats. | |
* | |
* @ingroup views_style_plugins |
I hereby claim:
To claim this, I am signing this object:
name: aawp | |
recipe: wordpress | |
config: | |
webroot: wordpress_root | |
php: '7.3' | |
xdebug: true | |
config: | |
php: .lando/php.ini | |
#database: .lando/mysql.cnf | |
#server: .lando/apache.conf |
<?php | |
namespace Drupal\my_module\Plugin\views\style; | |
use Drupal\rest\Plugin\views\style\Serializer; | |
/** | |
* The style plugin for serialized output formats. | |
* | |
* @ingroup views_style_plugins |
<?php | |
/** | |
* Override the rules ui component row theme function so that we can show much | |
* more information about each parameter. | |
* | |
* - Changed "30" to "200" in the truncate_utf8 function call. | |
* | |
* @ingroup themeable | |
*/ |
<?php | |
/** | |
* Create media entities from existing file fields. | |
* | |
* @link https://chromatichq.com/blog/migrating-drupal-file-fields-media-entities-without-migrate-module | |
*/ | |
function MODULENAME_update_8001() { | |
// Nodes types that will get media migrated. | |
$node_types = ['article','event','page','session','sponsor']; | |
// Map old file fields => new media fields. |
<?php | |
use Drupal\file\Entity\File; | |
/** | |
* Get the set or default image uri for a file image field (if either exist) | |
* | |
* @link https://drupal.stackexchange.com/questions/194176/loading-default-image-from-a-node-field-in-page-html-twig | |
* | |
* @param $entity \Drupal\Core\Entity\ContentEntityBase | |
* @param $fieldName string |