class ScheduledTransitionsCommands in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/Commands/ScheduledTransitionsCommands.php \Drupal\scheduled_transitions\Commands\ScheduledTransitionsCommands
Drush commandfile for Scheduled Transitions.
Hierarchy
- class \Drupal\scheduled_transitions\Commands\ScheduledTransitionsCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of ScheduledTransitionsCommands
1 string reference to 'ScheduledTransitionsCommands'
1 service uses ScheduledTransitionsCommands
File
- src/
Commands/ ScheduledTransitionsCommands.php, line 13
Namespace
Drupal\scheduled_transitions\CommandsView source
class ScheduledTransitionsCommands extends DrushCommands {
/**
* Job runner for Scheduled Transitions.
*
* @var \Drupal\scheduled_transitions\ScheduledTransitionsJobsInterface
*/
protected $jobs;
/**
* Constructs a new ScheduledTransitionsCommands.
*
* @param \Drupal\scheduled_transitions\ScheduledTransitionsJobsInterface $jobs
* Job runner for Scheduled Transitions.
*/
public function __construct(ScheduledTransitionsJobsInterface $jobs) {
$this->jobs = $jobs;
}
/**
* Fills queue with crawler jobs.
*
* @command scheduled-transitions:queue-jobs
* @aliases sctr-jobs
*/
public function crawlJobCreator() {
$this->jobs
->jobCreator();
$this
->logger()
->success(dt('Scheduled transitions queued.'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ScheduledTransitionsCommands:: |
protected | property | Job runner for Scheduled Transitions. | |
ScheduledTransitionsCommands:: |
public | function | Fills queue with crawler jobs. | |
ScheduledTransitionsCommands:: |
public | function | Constructs a new ScheduledTransitionsCommands. |