-
Notifications
You must be signed in to change notification settings - Fork 4
/
tide_core.drush.inc
56 lines (49 loc) · 1.85 KB
/
tide_core.drush.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @file
* Drush integration for the tide_core module.
*/
/**
* Implements hook_drush_help().
*/
function tide_core_drush_help($section) {
switch ($section) {
case 'tide-core-scheduled-transitions-queue-jobs':
return dt('Drush 8 wrapper for the Drush 9 Scheduled transitions queuing Drush command.');
}
}
/**
* Implements hook_drush_command().
*/
function tide_core_drush_command() {
$commands = [];
$commands['tide-core-scheduled-transitions-queue-jobs'] = [
'description' => dt('Drush 8 wrapper for the Drush 9 Scheduled transitions queuing Drush command.'),
];
return $commands;
}
/**
* Disabiling some warning rule check.
* phpcs:disable Drupal.Commenting.Deprecated.DeprecatedVersionFormat
* phpcs:disable Drupal.Commenting.Deprecated.DeprecatedWrongSeeUrlFormat
* phpcs:disable Drupal.Semantics.FunctionTriggerError.TriggerErrorVersion
* phpcs:disable Drupal.Semantics.FunctionTriggerError.TriggerErrorVersion
* phpcs:disable Drupal.Semantics.FunctionTriggerError.TriggerErrorSeeUrlFormat
*/
/**
* Dispatches scheduled media releases.
*
* @deprecated in tide_core:2.0.5 and is removed from tide_core:2.0.6.
* With a move to Drush 9+ the functionality provided by this function is now
* accessible with the Drush command provided by Scheduled Transitions
* module.
*
* @see Drupal\scheduled_transitions\Commands\ScheduledTransitionsCommands
*/
function drush_tide_core_scheduled_transitions_queue_jobs() {
@trigger_error('drush_tide_core_scheduled_transitions_queue_jobs() is deprecated in tide_core:2.0.5 and is removed from tide_core:2.0.6. Instead use scheduled-transitions:queue-jobs. See https://github.com/dpc-sdp/tide_core/pull/220', E_USER_DEPRECATED);
$jobs = \Drupal::service('scheduled_transitions.jobs');
$jobs->jobCreator();
drush_print(dt('Scheduled transitions queued.'));
}
/* phpcs:enable */