You are here

function social_album_views_data in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_album/social_album.module \social_album_views_data()
  2. 10.0.x modules/social_features/social_album/social_album.module \social_album_views_data()
  3. 10.2.x modules/social_features/social_album/social_album.module \social_album_views_data()

Implements hook_views_data().

File

modules/social_features/social_album/social_album.module, line 400
The Social Album module.

Code

function social_album_views_data() {
  return [
    \Drupal::entityTypeManager()
      ->getStorage('post')
      ->getEntityType()
      ->getBaseTable() => [
      'post_operations' => [
        'field' => [
          'title' => t('Post operations links'),
          'help' => t('Provides links to perform post operations.'),
          'id' => 'social_album_post_operations',
        ],
      ],
    ],
  ];
}