You are here

MaestroQueueViewsData.php in Maestro 8.2

Same filename and directory in other branches
  1. 3.x src/Entity/MaestroQueueViewsData.php

File

src/Entity/MaestroQueueViewsData.php
View source
<?php

namespace Drupal\maestro\Entity;

use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;

/**
 * Provides Views data for the Maestro Queue Entity.
 */
class MaestroQueueViewsData extends EntityViewsData implements EntityViewsDataInterface {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['maestro_queue']['table']['base'] = [
      'field' => 'id',
      'title' => $this
        ->t('Maestro Queue'),
      'help' => $this
        ->t('The Maestro Queue entity ID.'),
    ];
    return $data;
  }

}

Classes

Namesort descending Description
MaestroQueueViewsData Provides Views data for the Maestro Queue Entity.