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\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<?php | |
namespace Drupal\mobilis\Plugin\Field\FieldFormatter; | |
use Drupal\Core\Entity\EntityDisplayRepositoryInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Field\FieldDefinitionInterface; | |
use Drupal\Core\Field\FieldItemListInterface; | |
use Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase; |