This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snowfakery Recipe to generate data for a specific project that uses NPSP. | |
# This recipe will generate 30 accounts with gifts using NPSP standard patterns. Yes, you can make the 30 a parameter, | |
# but the goal here is simple for first time users. Gift yourself homework of making that a variable. This recipe also | |
# assumes that you need payment records but are not automatically generating those in NPSP settings. | |
# Load the NPSP macros (which in turn load marcos for SF Standard objects). | |
- include_file: npsp_macros.yml | |
# Create an Account using the SF Standard Object macro loaded in the previous line. | |
- object: Account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CumulusCI version: 3.17.1 | |
Python version: 3.8.5 (c:\users\ahcrosman\.local\pipx\venvs\cumulusci\scripts\python.exe) | |
Environment Info: Windows / AMD64 | |
Last Command Run | |
================================ | |
C:\Users\ahcrosman\.local\bin\cci org list | |
Traceback (most recent call last): | |
File "c:\users\ahcrosman\.local\pipx\venvs\cumulusci\lib\site-packages\cumulusci\cli\cci.py", line 221, in main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\example_pantheon_loader; | |
use Drupal\Core\Database\Connection; | |
use Drupal\batch_service_interface\AbstractBatchService; | |
use Drupal\Core\Logger\LoggerChannelFactoryInterface; | |
use Drupal\Core\StringTranslation\TranslationInterface; | |
use Drupal\file\Entity\File; | |
use Drupal\Core\File\FileSystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function prepareFormAssemblyQueryString(array $parameters, $salt, $expire_timeout) { | |
$parts = []; | |
$signString = ''; | |
foreach($parameters as $key => $value) { | |
$signString .= $key . $value; | |
$parts[] = rawurlencode($key) . '=' . rawurlencode($value); | |
} | |
$expireTime = time() + $expire_timeout; | |
$signString .= 'expire' . (string)$expireTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\example\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Drupal\Core\Controller\ControllerBase; | |
use Drupal\Core\Cache\CacheableJsonResponse; | |
use Drupal\Core\Cache\CacheableMetadata; | |
class ExampleController extends ControllerBase { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\example\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
class ExampleController extends ControllerBase { | |
public function getJson(Request $request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div{{ attributes }}> | |
<p><span class="copyright-text">{% trans %} | |
Copyright © {{ year }} A Great Organization | |
{% endtrans %} | |
</span> | |
<span class="copyright-rights"> | |
{% trans %}All Rights Reserved{% endtrans %} | |
</span> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_theme(). | |
*/ | |
function custom_blocks_theme($existing, $type, $theme, $path) { | |
return [ | |
'custom_blocks_copyright' => [ | |
'variables' => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\custom_blocks\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; | |
/** | |
* Provides a 'CopyrightBlock' block. | |
* | |
* @Block( |
NewerOlder