ActivityViewsData.php in Open Social 8.3
Same filename and directory in other branches
- 8.9 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.2 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.4 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.5 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.6 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.7 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 8.8 modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 10.3.x modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 10.0.x modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 10.1.x modules/custom/activity_creator/src/Entity/ActivityViewsData.php
- 10.2.x modules/custom/activity_creator/src/Entity/ActivityViewsData.php
Namespace
Drupal\activity_creator\EntityFile
modules/custom/activity_creator/src/Entity/ActivityViewsData.phpView source
<?php
namespace Drupal\activity_creator\Entity;
use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;
/**
* Provides Views data for Activity entities.
*/
class ActivityViewsData extends EntityViewsData implements EntityViewsDataInterface {
/**
* {@inheritdoc}
*/
public function getViewsData() {
$data = parent::getViewsData();
$data['activity_field_data']['table']['base'] = [
'field' => 'id',
'title' => $this
->t('Activity'),
'help' => $this
->t('The Activity ID.'),
];
return $data;
}
}
Classes
Name | Description |
---|---|
ActivityViewsData | Provides Views data for Activity entities. |