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
# Starter pipeline for the drupalwxt/docker-scaffold appsvc image | |
trigger: | |
tags: | |
include: | |
- '*' | |
pr: none | |
# Use a generic Ubuntu pool provided by Azure DevOps |
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
sed -E 's/^.*LOCK TABLES.*$//' before.sql > after.sql |
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
// Function to calculate memory usage | |
function getMemoryUsage() { | |
$memory = memory_get_usage(true); | |
$units = array('B', 'KB', 'MB', 'GB', 'TB'); | |
return @round($memory / pow(1024, ($i = floor(log($memory, 1024)))), 2) . ' ' . $units[$i]; | |
} |
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
// html/core/lib/Drupal/Core/Extension/ModuleHandler.php | |
/** | |
* {@inheritdoc} | |
*/ | |
public function invokeAllWith(string $hook, callable $callback): void { | |
foreach (array_keys($this->getImplementationInfo($hook)) as $module) { | |
$hookInvoker = \Closure::fromCallable($module . '_' . $hook); | |
$before = microtime(true); |
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\my_module; | |
/** | |
* Class BatchService. | |
*/ | |
class BatchService { | |
/** |
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
# Add credential helper | |
$ git config credential.helper store | |
# Remove credential helper | |
$ sudo git config credential.helper '' |
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
diff --git a/webform_validation.info.yml b/webform_validation.info.yml | |
index 67266d3..3c978eb 100644 | |
--- a/webform_validation.info.yml | |
+++ b/webform_validation.info.yml | |
@@ -3,7 +3,7 @@ description: 'Add validation rules to Webforms.' | |
package: 'Webform' | |
type: module | |
-core_version_requirement: ^9.4 || ^10 | |
+core_version_requirement: ^9.2 || ^10 |
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
\Drupal::logger('my_module')->notice('<pre><code>' . print_r($object, TRUE) . '</code></pre>' ); |
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
https://wet-boew.github.io/wet-boew-styleguide/design/proximity-en.html | |
0 = 0px | |
sm = 5px | |
md = 15px | |
lg = 30px | |
xl = 50px | |
Margin bottom |
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
GCWeb and GCIntranet theme examples: https://ssl-templates.services.gc.ca/app/cls/wet/gcintranet/v4_0_39/cdts/appTop/apptop-en.shtml |
NewerOlder