This file contains hidden or 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 | |
| /** | |
| * Increase max_length for specific paragraph text fields. | |
| */ | |
| function my_module_update_10001() { | |
| $fields = [ | |
| 'field_caption', | |
| ]; |
This file contains hidden or 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 | |
| namespace Drupal\my_module\Plugin\migrate_plus\data_parser; | |
| use Drupal\migrate\MigrateException; | |
| use Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json; | |
| /** | |
| * JSON data parser for APIs returning a single object per URL. | |
| * |
This file contains hidden or 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 | |
| namespace Drupal\example\Form; | |
| use Drupal\Core\Form\ConfigFormBase; | |
| use Drupal\Core\Form\FormStateInterface; | |
| /** | |
| * Class AjaxAddMoreForm. | |
| * |
This file contains hidden or 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 | |
| use Drupal\user\Entity\User; | |
| /** | |
| * Rehash migrated Drupal 5 MD5 hashes for Drupal 8. | |
| */ | |
| function my_module_update_8101(&$sandbox) { | |
| // This update hook should only be ran if the user migration didn't process |