class Drush8Io in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Cli/Drush8Io.php \Drupal\cms_content_sync\Cli\Drush8Io
- 2.0.x src/Cli/Drush8Io.php \Drupal\cms_content_sync\Cli\Drush8Io
Class Drush8Io.
This is a stand in for \Symfony\Component\Console\Style\StyleInterface with drush 8 so that we don't need to depend on symfony components.
Hierarchy
Expanded class hierarchy of Drush8Io
2 files declare their use of Drush8Io
- cms_content_sync.drush.inc in ./
cms_content_sync.drush.inc - Contains Drush commands for Content Sync.
- cms_content_sync_developer.drush.inc in modules/
cms_content_sync_developer/ cms_content_sync_developer.drush.inc - Contains Drush commands for Content Sync.
File
- src/
Cli/ Drush8Io.php, line 13
Namespace
Drupal\cms_content_sync\CliView source
class Drush8Io implements ICLIIO {
/**
* {@inheritdoc}
*/
public function confirm($text, $default = true) {
return drush_confirm($text);
}
/**
* {@inheritdoc}
*/
public function success($text) {
drush_log($text, LogLevel::SUCCESS);
}
/**
* {@inheritdoc}
*/
public function warning($text) {
drush_log($text, LogLevel::WARNING);
}
/**
* {@inheritdoc}
*/
public function error($text) {
drush_log($text, LogLevel::ERROR);
}
/**
* {@inheritdoc}
*/
public function text($text) {
drush_print($text);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Drush8Io:: |
public | function |
Ask the user to confirm interactively. Overrides ICLIIO:: |
|
Drush8Io:: |
public | function |
Overrides ICLIIO:: |
|
Drush8Io:: |
public | function |
Overrides ICLIIO:: |
|
Drush8Io:: |
public | function |
Overrides ICLIIO:: |
|
Drush8Io:: |
public | function |
Overrides ICLIIO:: |