CacheflushEntityViewsData.php in CacheFlush 8
File
modules/cacheflush_ui/src/Entity/CacheflushEntityViewsData.php
View source
<?php
namespace Drupal\cacheflush_ui\Entity;
use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;
class CacheflushEntityViewsData extends EntityViewsData implements EntityViewsDataInterface {
public function getViewsData() {
$data = parent::getViewsData();
$data['cacheflush']['cacheflush_bulk_form'] = [
'title' => t('Cacheflush operations bulk form'),
'help' => t('Add a form element that lets you run operations on multiple entities.'),
'field' => [
'id' => 'cacheflush_bulk_form',
],
];
return $data;
}
}