public function ViewListController::buildRow

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

Overrides EntityListController::buildRow

1 call to ViewListController::buildRow()
ViewListController::render in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php
Overrides Drupal\Core\Entity\EntityListController::render();

File

drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php, line 40
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
        ->get('description'),
      'tag' => $view
        ->get('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',
    ),
  );
}