You are here

public function ReusableBlockViewsData::getViewsData in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/ReusableBlockViewsData.php \Drupal\gutenberg\ReusableBlockViewsData::getViewsData()

Returns views data for the entity type.

Return value

array Views data in the format of hook_views_data().

Overrides EntityViewsData::getViewsData

File

src/ReusableBlockViewsData.php, line 15

Class

ReusableBlockViewsData
Provides the views data for the entity.

Namespace

Drupal\gutenberg

Code

public function getViewsData() {
  $data = parent::getViewsData();

  // Go to the following url to get details.
  // https://api.drupal.org/api/drupal/core!modules!views!views.api.php/function/hook_views_data/8.2.x
  return $data;
}