You are here

public function CacheflushEntityViewsData::getViewsData in CacheFlush 8

Returns views data for the entity type.

Return value

array Views data in the format of hook_views_data().

Overrides EntityViewsData::getViewsData

File

modules/cacheflush_ui/src/Entity/CacheflushEntityViewsData.php, line 16

Class

CacheflushEntityViewsData
Provides Views data for Cacheflush entity entities.

Namespace

Drupal\cacheflush_ui\Entity

Code

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;
}