Language | files | blank | comment | code |
---|---|---|---|---|
XML | 2 | 156 | 0 | 13587 |
PHP | 157 | 1623 | 1706 | 8345 |
CSV | 6 | 0 | 0 | 2339 |
YAML | 45 | 4 | 0 | 467 |
JSON | 6 | 0 | 0 | 127 |
JavaScript | 8 | 22 | 49 | 91 |
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
name: Pantheon Deploy Multi-Dev | |
# Github Action triggers when a branch is created off of main named | |
# feature/Whatever and a pull request is opened. | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
GITHUB_REF: ${{ github.ref }} |
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_preprocess_menu(). | |
* | |
*/ | |
function MYTHEME_preprocess_menu(&$variables) { | |
// Limit to specific menus for performance. | |
$menus = ['main', 'footer']; | |
if (isset($variables['menu_name']) && in_array($variables['menu_name'], $menus)) { |
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 | |
// See https://jobs.github.com/api for documentation. | |
$client = \Drupal::httpClient(); | |
$params = [ | |
'query' => [ | |
'description' => 'laravel', | |
'full_time' => 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 | |
// Add Twilio by SDK with composer. | |
// CLI Command: composer require twilio/sdk. | |
use Twilio\Rest\Client; | |
use Drupal\Core\Entity\EntityInterface; | |
/** | |
* Implements hook_ENTITY_TYPE_insert(). |