_content_moderation_views_data_object

_content_moderation_views_data_object()

Creates a ViewsData object to respond to views hooks.

Return value

\Drupal\content_moderation\ViewsData The content moderation ViewsData object.

File

core/modules/content_moderation/content_moderation.views.inc, line 32
Provide views data for content_moderation.module.

Code

function _content_moderation_views_data_object() {
  return new ViewsData(
  \Drupal::service('entity_type.manager'), 
  \Drupal::service('content_moderation.moderation_information')
  );
}
doc_Drupal
2016-10-29 09:57:08
Comments
Leave a Comment

Please login to continue.