You are here

MaestroProductionAssignmentsViewsData.php in Maestro 8.2

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

File

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

namespace Drupal\maestro\Entity;

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

/**
 * Provides Views data for the Maestro Production Assignments Entity.
 */
class MaestroProductionAssignmentsViewsData extends EntityViewsData implements EntityViewsDataInterface {

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

}

Classes

Namesort descending Description
MaestroProductionAssignmentsViewsData Provides Views data for the Maestro Production Assignments Entity.