- Issue created by @vanessa.fayard
- 🇫🇷France Fabsgugu
Hello,
Thanks for the initiative! I think it's a good idea.
- Merge request !10issue #3500576 - Command Drush to create Orejime entity → (Merged) created by vanessa.fayard
- 🇫🇷France vanessa.fayard
Hello,
I have made an MR proposal. MR !10I did not implement the interactive command because I encountered problems between version 12 and 13 of Drush. The ask() method changes drastically between these two versions.
So, I opted for a command with arguments and options to create the entity.Example of command:
drush orejime:create-entity videos 'Youtube videos' --description="this is the description text" --publish --default
- 🇫🇷France Fabsgugu
Hello,
Tested on Drupal 10.4 with drush 12 and 11.1 with drupal 13 : it works.Can you add a part in the MR dedicated to the drush command with the list of arguments and an example?
Also, can you just change
Orejime::create to $this->entityTypeManager->getStorage('orejime_service')Thanks !
- 🇫🇷France vanessa.fayard
Thanks for the feedback!
I've updated the MR. I've added the command documentation to the README.md.
Have a nice day!
-
fabsgugu →
committed 9d42e20d on 2.0.x authored by
vanessa.fayard →
issue #3500576 - Command Drush to create Orejime entity
-
fabsgugu →
committed 9d42e20d on 2.0.x authored by
vanessa.fayard →
- 🇫🇷France Fabsgugu
I merged the commit and created a new version.
Thanks for the development and fixes !