mpp
  • Member for 5 years, 7 months
  • Last seen this week
Upgrade Status module reports PHPUnit\Framework\TestCase is not an interface
0 votes

This issue has been reported at https://github.com/mglaman/drupal-check/issues/202

View answer
Drupal.t() does not work
4 votes

Note that when using a javascript minifier you should disable obfuscation or Drupal won't be able to find "Drupal.t" (it will be obfuscated to something like "e.t()").

View answer
How can I turn off caching redirect?
0 votes

You may want to cache your response with CacheableRedirectResponse

View answer
Why isn't this module library loaded?
Accepted answer
1 votes

Instead of attaching in preprocess_page you already attached the library in your theme file: wk_elastic.info.yml libraries: - wk_elastic/list-js You may also want to define the version in your ...

View answer
Link to content in views doesn't translated to fr
0 votes

There's a bug in core that shows a link to the same language when your label field (title/name) isn't translatable. See https://www.drupal.org/project/drupal/issues/2447821

View answer
Migrate track last imported time
0 votes

The last import date for a migration is stored in the key_value store. See Drupal\migrate_tools\Controller\MigrationListBuilder.php for an example on how to get the timestamp of the last import for ...

View answer
Migrate media with alternative text
1 votes

field_media_image/alt belongs in the immagini migration, not in the node migration. In migration that creates the media item (destination plugin entity:media) you can map the media item's fields: #...

View answer
How to refresh new migrations in Drupal 8 migration module?
7 votes

Migrations should be in the MODULENAME/migrations subdirectory. After modifying a migration config a simple drush cr suffices to apply the changes. A config deriver will turn a migration config back ...

View answer
View field with link to excecute action plugin
0 votes

I'm thinking about setting up a route with a csrf token and an access check on a controller that manually performs the action: my_module.my_action_callback: path: '/node/{node}/my_action_callback' ...

View answer
How do I update core to 8.4?
5 votes

It's best to update dependencies using composer: composer update drupal/core --with-dependencies Have a look at https://www.drupal.org/docs/8/update/update-procedure-in-drupal-8 Note that you'll ...

View answer
How to programmatically update the allowed values of a list field?
3 votes

You'd better use the allowed_values_function with a callback: 'settings' => array( 'allowed_values' => array(), 'allowed_values_function' => '_my_feature_module_options_list', ), See ...

View answer