You are here

public function ViewListController::buildRow in Views (for Drupal 7) 8.3

Overrides Drupal\Core\Entity\EntityListController::buildRow();

File

views_ui/lib/Drupal/views_ui/ViewListController.php, line 37
Definition of Drupal\views_ui\ViewListController.

Class

ViewListController
Provides a listing of Views.

Namespace

Drupal\views_ui

Code

public function buildRow(EntityInterface $view) {
  return array(
    'data' => array(
      'view_name' => theme('views_ui_view_info', array(
        'view' => $view,
      )),
      'description' => $view->description,
      'tag' => $view->tag,
      'path' => implode(', ', $view
        ->getPaths()),
      'operations' => array(
        'data' => $this
          ->buildOperations($view),
      ),
    ),
    'title' => t('Machine name: ') . $view
      ->id(),
    'class' => array(
      $view
        ->isEnabled() ? 'views-ui-list-enabled' : 'views-ui-list-disabled',
    ),
  );
}