Skip to main content
Tweeted twitter.com/StackDrupal/status/1310776327528644609
corrected the function name
Source Link
avpaderno
  • 98.1k
  • 15
  • 165
  • 284

I'm working on a Drupal 8 site (D8), and part of the requirement is giving the client a page thatwhere they can click a button to do a particular task. I am able to do this using a Drush command using CLI. Butfrom the command line, but I want to make this asdo it from a codemodule. 

I had seen code using either php_exec() andor invoke_processdrush_invoke_process() function. ButHow can anyone explain how toI use this function?

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to do this using a Drush command using CLI. But I want to make this as a code. I had seen php_exec() and invoke_process() function. But can anyone explain how to use this?

I'm working on a Drupal 8 site, and part of the requirement is giving the client a page where they can click a button to do a particular task. I am able to do this using a Drush command from the command line, but I want to do it from a module. 

I had seen code using either php_exec() or drush_invoke_process(). How can I use this function?

Post Reopened by avpaderno
edited tags
Link
avpaderno
  • 98.1k
  • 15
  • 165
  • 284
Post Closed as "Duplicate" by norman.lol, Shawn Conn, mradcliffe, Felix Eve, Alfred Armstrong
added 12 characters in body; edited title
Source Link
norman.lol
  • 19.1k
  • 6
  • 75
  • 129

How can I runexecute Drush Command using code in drupal 8commands programmatically?

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to use the drushdo this using a Drush command using CLI. But iI want to make this as a code. I had seen php_exec()php_exec() and invoke_process()invoke_process() function. But can anyone explain how to use this?

How can I run Drush Command using code in drupal 8?

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to use the drush command using CLI. But i want to make this as a code. I had seen php_exec() and invoke_process() function. But can anyone explain how to use this?

How can I execute Drush commands programmatically?

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to do this using a Drush command using CLI. But I want to make this as a code. I had seen php_exec() and invoke_process() function. But can anyone explain how to use this?

Source Link
Rifas Ali
  • 510
  • 3
  • 8
  • 19
Loading