Account created on 13 October 2006, about 18 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States dshumaker

Hi @danflanagan8 , I was pressed for time and so extended the php class to get it working. When I have a little more time I can work with you to try out some more tests.

But here are the gist of the changes I made to the EntityLookup process plugin to satisfy my requirements:

   /**
    * {@inheritdoc}
    */
   public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
     // If the source data is an empty array, return the same.
-    if (gettype($value) === 'array' && count($value) === 0) {
+    if (gettype($value) === 'array' && count($value) === 0 || ($row->get('Company') == "XX")) {
       return [];
     }

and

@@ -256,7 +86,7 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn
     $results = $query->execute();

     if (empty($results)) {
-      return NULL;
+      throw new MigrateException('PCT Match field is null or invalid and is required.');
     }

hopefully helpful! :)

πŸ‡ΊπŸ‡ΈUnited States dshumaker

I am also getting this error... will watch for responses.

πŸ‡ΊπŸ‡ΈUnited States dshumaker

Hi Sorry for a dumb question , I can't find a drupal/console roadmap. Does drupal/console have it as a goal to be able to run commands like symfony/console? For example https://github.com/symfony/demo/blob/d2b90fbda5346022c6e92393022ef649987...

and

https://symfony.com/doc/4.2/templating/syntax.html `php bin/console lint:twig templates/article/recent_list.html.twig` ?

I'm currently having an issue with asm89/twig-lint and Drupal9. Drupal 9 has a later version of symfony/console than asm89/twig-lint. I'm just looking for a more up to date twig lint replacement.

Production build 0.71.5 2024