Categories
CMS Drupal Mastering Development

Why doesnt my migration plugin run?

I made a plugin to add the alias to my node migration, using the instructions here https://www.calebthorne.com/blog/drupal/2016/07/16/drupal-8-migrate-pathauto but i tried to put a drush break point and it never runs . How do i get this plugin to run during the migration? this is the plugin code below . and the yml is as follows: […]

Categories
CMS Drupal Mastering Development

Why doesnt my migration plugin run?

I made a plugin to add the alias to my node migration, using the instructions here https://www.calebthorne.com/blog/drupal/2016/07/16/drupal-8-migrate-pathauto but i tried to put a drush break point and it never runs . How do i get this plugin to run during the migration? this is the plugin code below . and the yml is as follows: […]

Categories
CMS Drupal Mastering Development

Why doesnt my migration plugin run?

I made a plugin to add the alias to my node migration, using the instructions here https://www.calebthorne.com/blog/drupal/2016/07/16/drupal-8-migrate-pathauto but i tried to put a drush break point and it never runs . How do i get this plugin to run during the migration? this is the plugin code below . and the yml is as follows: […]

Categories
CMS Drupal Mastering Development

How do I create a merge request for a project?

I’d like to create a merge request for a project. I found a page on drupal.org titled Issue forks & merge requests which seems to address this but I’m not really getting anywhere. The page says: On an issue page, make sure the fork is created and you have access. If the fork has not […]

Categories
CMS Drupal Mastering Development

How to show node image field in default search results (Drupal 8)

How to render node image field in default search results (Drupal 8). What i have tried so far: function mag_api_node_search_result(\Drupal\node\NodeInterface $node ,$hellotest = NULL) { //$image = $node->get(‘field_issue_image’)->getValue(); $imageUrl = $node->get(‘field_issue_image’)->entity->uri->value; $url = \Drupal\image\Entity\ImageStyle::load(‘medium’)->buildUrl($imageUrl); $hellotest[‘test’] = $url; } After that in search-result.html.twig trying to render this variable but $hellotest[‘test’] doesn’t renders in twig. <h3> <a […]

Categories
CMS Drupal Mastering Development

How can I make views exposed filter case-sensitive?

When I use the exposed filter, if I search for "IMAG" all results showing image show up. Is there a way to have the exposed filter search case sensitive? UPDATE I added a screenshot to explain more. I have tried the operators: is equal to, contains, contains any word, contains all words, and regex. Neither […]

Categories
CMS Drupal Mastering Development

How can I make views exposed filter case-sensitive?

When I use the exposed filter, if I search for "IMAG" all results showing image show up. Is there a way to have the exposed filter search case sensitive? UPDATE I added a screenshot to explain more. I have tried the operators: is equal to, contains, contains any word, contains all words, and regex. Neither […]

Categories
CMS Drupal Mastering Development

How can I make views exposed filter case-sensitive?

When I use the exposed filter, if I search for "IMAG" all results showing image show up. Is there a way to have the exposed filter search case sensitive? UPDATE I added a screenshot to explain more. I have tried the operators: is equal to, contains, contains any word, contains all words, and regex. Neither […]

Categories
CMS Drupal Mastering Development

why am i getting a Drupal\Component\Plugin\Exception\PluginNotFoundException: when the plugin does exist?

I wrote a custom source plugin and put it in /Plugin/migrate/source/node.php with /** * Custom node source including url aliases. * * @MigrateSource( * id = "migd8_node_blog_node" * ) */ but i keep getting this error Drupal\Component\Plugin\Exception\PluginNotFoundException: The "migd8_node_blog_node" plugin does not exist. even after flushing the cache and reinstalling the module.

Categories
CMS Drupal Mastering Development

The alias /store/my-store is already in use in this language

I have a store type that contains a paragraph field. When I create a store, it works perfectly. But when I update the store by adding a paragraph, I have an error in the form : The alias /store/my-store is already in use in this language This error occurs since the update to Commerce 2.17 […]