json output : https://ipinfo.io/40.49.186.255/geo
raw text output : https://ipinfo.io/40.49.186.255/country
get your public ip : https://ip.faimaison.net/
| <?php | |
| namespace Drupal\MY_MODULE\Plugin\EmailAdjuster; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\symfony_mailer\EmailInterface; | |
| use Drupal\symfony_mailer\Processor\EmailAdjusterBase; | |
| /** | |
| * Defines the Custom header Email Adjuster. |
| <?php | |
| namespace Drupal\iea_migrate\Plugin\migrate\process; | |
| use Drupal\migrate\MigrateException; | |
| use Drupal\migrate\ProcessPluginBase; | |
| use Drupal\migrate\MigrateExecutableInterface; | |
| use Drupal\migrate\Row; |
json output : https://ipinfo.io/40.49.186.255/geo
raw text output : https://ipinfo.io/40.49.186.255/country
get your public ip : https://ip.faimaison.net/
| <?php | |
| /** | |
| * Implements hook_entity_extra_field_info(). | |
| */ | |
| function MYMODULE_entity_extra_field_info() { | |
| $extra = []; | |
| foreach (NodeType::loadMultiple() as $bundle) { |
| <?php | |
| namespace Drupal\mymodule\Plugin\Block; | |
| use Drupal\Core\Block\BlockBase; | |
| use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| use Drupal\views\Views; | |
| /** |
| #!/bin/bash | |
| function greenecho { | |
| echo "" && echo -e "\e[30;48;5;82m ✔ $1 \e[0m" | |
| } | |
| function orangeecho { | |
| echo "" && echo -e "\e[30;48;5;208m ⚠ $1 \e[0m" | |
| } | |
| greenecho "Here we are: "$(pwd) |
body_to_paragraph migrationmy_node_migration migration