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
From 5b0bad9304c44d4f0a1ea25f920e9a0f4d669bbf Mon Sep 17 00:00:00 2001 | |
From: Katie Elizabeth <[email protected]> | |
Date: Tue, 11 Mar 2025 15:20:23 -0400 | |
Subject: [PATCH] add try/catch | |
--- | |
src/Controller/SimpleAccessLog.php | 145 +++++++++++++++-------------- | |
1 file changed, 76 insertions(+), 69 deletions(-) | |
diff --git a/src/Controller/SimpleAccessLog.php b/src/Controller/SimpleAccessLog.php |
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
echo "Installing 'Oh My Posh'..." | |
sudo wget https://www.github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh | |
sudo chmod +x /usr/local/bin/oh-my-posh | |
echo "Oh My Posh installation complete. Version:" | |
oh-my-posh --version |
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 | |
$definitions = Drupal::service('plugin.manager.field.field_type')->getDefinitions(); | |
foreach ( $definitions as $field_type => $definition) { | |
print 'Label: '. $definition['label']. PHP_EOL; | |
print 'Machine name: '. $field_type. PHP_EOL; | |
print 'Descritpion: '. $definition['description']. PHP_EOL; | |
print 'Provider: '. $definition['provider']. PHP_EOL . ' ---' . PHP_EOL; | |
} |