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; | |
} |