You are here

RadioactivityViewsData.php in Radioactivity 4.0.x

File

src/RadioactivityViewsData.php
View source
<?php

namespace Drupal\radioactivity;

use Drupal\views\EntityViewsData;

/**
 * Provides the views data for the aggregator feed entity type.
 */
class RadioactivityViewsData extends EntityViewsData {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['radioactivity']['langcode']['title'] = $this
      ->t('Language');

    // The radioactivity entity does not provide an entity view.
    unset($data['radioactivity']['rendered_entity']);
    return $data;
  }

}

Classes

Namesort descending Description
RadioactivityViewsData Provides the views data for the aggregator feed entity type.