You are here

MaestroProcessViewsData.php in Maestro 8.2

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

File

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

namespace Drupal\maestro\Entity;

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

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

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

}

Classes

Namesort descending Description
MaestroProcessViewsData Provides Views data for the Maestro Process Entity.