You are here

class LogViewsData in Log entity 2.x

Same name and namespace in other branches
  1. 8 src/LogViewsData.php \Drupal\log\LogViewsData

Provides views data for the file entity type.

Hierarchy

  • class \Drupal\log\LogViewsData extends \Drupal\entity\EntityViewsData

Expanded class hierarchy of LogViewsData

File

src/LogViewsData.php, line 10

Namespace

Drupal\log
View source
class LogViewsData extends EntityViewsData {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['log_field_data']['timestamp']['sort']['id'] = 'log_standard';
    $data['log_field_data']['timestamp']['field']['id'] = 'log_field';
    return $data;
  }

}

Members