function _drush_views_complete

8.0.x views.d8.drush.inc _drush_views_complete()
7.x views.d8.drush.inc _drush_views_complete()

Helper function to return a list of view names for complete callbacks.

Return value

array An array of available view names.

2 calls to _drush_views_complete()
views_views_disable_complete in commands/core/views.d8.drush.inc
Command argument complete callback.
views_views_enable_complete in commands/core/views.d8.drush.inc
Command argument complete callback.

File

commands/core/views.d8.drush.inc, line 484
Drush integration for views.

Code

function _drush_views_complete() {
  drush_bootstrap_max();
  return array('values' => array_keys(Drupal::entityManager()->getStorageController('view')->loadMultiple()));
}