Esempio n. 1
0
 /**
  * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['provider'] = 'user';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     /* Field: Taxonomy: Term */
     $display_options['fields']['name']['id'] = 'name';
     $display_options['fields']['name']['table'] = 'taxonomy_term_data';
     $display_options['fields']['name']['field'] = 'name';
     $display_options['fields']['name']['provider'] = 'taxonomy';
     $display_options['fields']['name']['label'] = '';
     $display_options['fields']['name']['alter']['alter_text'] = 0;
     $display_options['fields']['name']['alter']['make_link'] = 0;
     $display_options['fields']['name']['alter']['absolute'] = 0;
     $display_options['fields']['name']['alter']['trim'] = 0;
     $display_options['fields']['name']['alter']['word_boundary'] = 0;
     $display_options['fields']['name']['alter']['ellipsis'] = 0;
     $display_options['fields']['name']['alter']['strip_tags'] = 0;
     $display_options['fields']['name']['alter']['html'] = 0;
     $display_options['fields']['name']['hide_empty'] = 0;
     $display_options['fields']['name']['empty_zero'] = 0;
     $display_options['fields']['name']['link_to_taxonomy'] = 1;
     return $display_options;
 }
Esempio n. 2
0
 /**
  * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     /* Field: File: Name */
     $display_options['fields']['filename']['id'] = 'filename';
     $display_options['fields']['filename']['table'] = 'file_managed';
     $display_options['fields']['filename']['field'] = 'filename';
     $display_options['fields']['filename']['entity_type'] = 'file';
     $display_options['fields']['filename']['entity_field'] = 'filename';
     $display_options['fields']['filename']['label'] = '';
     $display_options['fields']['filename']['alter']['alter_text'] = 0;
     $display_options['fields']['filename']['alter']['make_link'] = 0;
     $display_options['fields']['filename']['alter']['absolute'] = 0;
     $display_options['fields']['filename']['alter']['trim'] = 0;
     $display_options['fields']['filename']['alter']['word_boundary'] = 0;
     $display_options['fields']['filename']['alter']['ellipsis'] = 0;
     $display_options['fields']['filename']['alter']['strip_tags'] = 0;
     $display_options['fields']['filename']['alter']['html'] = 0;
     $display_options['fields']['filename']['hide_empty'] = 0;
     $display_options['fields']['filename']['empty_zero'] = 0;
     $display_options['fields']['filename']['plugin_id'] = 'field';
     $display_options['fields']['filename']['type'] = 'file_link';
     return $display_options;
 }
Esempio n. 3
0
 /**
  * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['options']['perm'] = 'access content';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     // Add the title field, so that the display has content if the user switches
     // to a row style that uses fields.
     /* Field: Content: Title */
     $display_options['fields']['title']['id'] = 'title';
     $display_options['fields']['title']['table'] = 'node_field_data';
     $display_options['fields']['title']['field'] = 'title';
     $display_options['fields']['title']['entity_type'] = 'node';
     $display_options['fields']['title']['entity_field'] = 'title';
     $display_options['fields']['title']['label'] = '';
     $display_options['fields']['title']['alter']['alter_text'] = 0;
     $display_options['fields']['title']['alter']['make_link'] = 0;
     $display_options['fields']['title']['alter']['absolute'] = 0;
     $display_options['fields']['title']['alter']['trim'] = 0;
     $display_options['fields']['title']['alter']['word_boundary'] = 0;
     $display_options['fields']['title']['alter']['ellipsis'] = 0;
     $display_options['fields']['title']['alter']['strip_tags'] = 0;
     $display_options['fields']['title']['alter']['html'] = 0;
     $display_options['fields']['title']['hide_empty'] = 0;
     $display_options['fields']['title']['empty_zero'] = 0;
     $display_options['fields']['title']['settings']['link_to_entity'] = 1;
     $display_options['fields']['title']['plugin_id'] = 'field';
     return $display_options;
 }
Esempio n. 4
0
 /**
  * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['options']['perm'] = 'access user profiles';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     /* Field: User: Name */
     $display_options['fields']['name']['id'] = 'name';
     $display_options['fields']['name']['table'] = 'users_field_data';
     $display_options['fields']['name']['field'] = 'name';
     $display_options['fields']['name']['entity_type'] = 'user';
     $display_options['fields']['name']['entity_field'] = 'name';
     $display_options['fields']['name']['label'] = '';
     $display_options['fields']['name']['alter']['alter_text'] = 0;
     $display_options['fields']['name']['alter']['make_link'] = 0;
     $display_options['fields']['name']['alter']['absolute'] = 0;
     $display_options['fields']['name']['alter']['trim'] = 0;
     $display_options['fields']['name']['alter']['word_boundary'] = 0;
     $display_options['fields']['name']['alter']['ellipsis'] = 0;
     $display_options['fields']['name']['alter']['strip_tags'] = 0;
     $display_options['fields']['name']['alter']['html'] = 0;
     $display_options['fields']['name']['hide_empty'] = 0;
     $display_options['fields']['name']['empty_zero'] = 0;
     $display_options['fields']['name']['link_to_user'] = 1;
     $display_options['fields']['name']['overwrite_anonymous'] = 0;
     $display_options['fields']['name']['plugin_id'] = 'user_name';
     return $display_options;
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['options']['perm'] = 'access site reports';
     return $display_options;
 }
Esempio n. 6
0
 /**
  * {@inheritdoc}
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['options']['perm'] = 'view all revisions';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     /* Field: Content revision: Created date */
     $display_options['fields']['changed']['id'] = 'changed';
     $display_options['fields']['changed']['table'] = 'node_field_revision';
     $display_options['fields']['changed']['field'] = 'changed';
     $display_options['fields']['changed']['entity_type'] = 'node';
     $display_options['fields']['changed']['entity_field'] = 'changed';
     $display_options['fields']['changed']['alter']['alter_text'] = FALSE;
     $display_options['fields']['changed']['alter']['make_link'] = FALSE;
     $display_options['fields']['changed']['alter']['absolute'] = FALSE;
     $display_options['fields']['changed']['alter']['trim'] = FALSE;
     $display_options['fields']['changed']['alter']['word_boundary'] = FALSE;
     $display_options['fields']['changed']['alter']['ellipsis'] = FALSE;
     $display_options['fields']['changed']['alter']['strip_tags'] = FALSE;
     $display_options['fields']['changed']['alter']['html'] = FALSE;
     $display_options['fields']['changed']['hide_empty'] = FALSE;
     $display_options['fields']['changed']['empty_zero'] = FALSE;
     $display_options['fields']['changed']['plugin_id'] = 'field';
     $display_options['fields']['changed']['type'] = 'timestamp';
     $display_options['fields']['changed']['settings']['date_format'] = 'medium';
     $display_options['fields']['changed']['settings']['custom_date_format'] = '';
     $display_options['fields']['changed']['settings']['timezone'] = '';
     /* Field: Content revision: Title */
     $display_options['fields']['title']['id'] = 'title';
     $display_options['fields']['title']['table'] = 'node_field_revision';
     $display_options['fields']['title']['field'] = 'title';
     $display_options['fields']['title']['entity_type'] = 'node';
     $display_options['fields']['title']['entity_field'] = 'title';
     $display_options['fields']['title']['label'] = '';
     $display_options['fields']['title']['alter']['alter_text'] = 0;
     $display_options['fields']['title']['alter']['make_link'] = 0;
     $display_options['fields']['title']['alter']['absolute'] = 0;
     $display_options['fields']['title']['alter']['trim'] = 0;
     $display_options['fields']['title']['alter']['word_boundary'] = 0;
     $display_options['fields']['title']['alter']['ellipsis'] = 0;
     $display_options['fields']['title']['alter']['strip_tags'] = 0;
     $display_options['fields']['title']['alter']['html'] = 0;
     $display_options['fields']['title']['hide_empty'] = 0;
     $display_options['fields']['title']['empty_zero'] = 0;
     $display_options['fields']['title']['settings']['link_to_entity'] = 0;
     $display_options['fields']['title']['plugin_id'] = 'field';
     return $display_options;
 }
Esempio n. 7
0
 /**
  * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
  */
 protected function defaultDisplayOptions()
 {
     $display_options = parent::defaultDisplayOptions();
     // Add permission-based access control.
     $display_options['access']['type'] = 'perm';
     $display_options['access']['options']['perm'] = 'access comments';
     // Add a relationship to nodes.
     $display_options['relationships']['node']['id'] = 'node';
     $display_options['relationships']['node']['table'] = 'comment_field_data';
     $display_options['relationships']['node']['field'] = 'node';
     $display_options['relationships']['node']['entity_type'] = 'comment_field_data';
     $display_options['relationships']['node']['required'] = 1;
     $display_options['relationships']['node']['plugin_id'] = 'standard';
     // Remove the default fields, since we are customizing them here.
     unset($display_options['fields']);
     /* Field: Comment: Title */
     $display_options['fields']['subject']['id'] = 'subject';
     $display_options['fields']['subject']['table'] = 'comment_field_data';
     $display_options['fields']['subject']['field'] = 'subject';
     $display_options['fields']['subject']['entity_type'] = 'comment';
     $display_options['fields']['subject']['entity_field'] = 'subject';
     $display_options['fields']['subject']['label'] = '';
     $display_options['fields']['subject']['alter']['alter_text'] = 0;
     $display_options['fields']['subject']['alter']['make_link'] = 0;
     $display_options['fields']['subject']['alter']['absolute'] = 0;
     $display_options['fields']['subject']['alter']['trim'] = 0;
     $display_options['fields']['subject']['alter']['word_boundary'] = 0;
     $display_options['fields']['subject']['alter']['ellipsis'] = 0;
     $display_options['fields']['subject']['alter']['strip_tags'] = 0;
     $display_options['fields']['subject']['alter']['html'] = 0;
     $display_options['fields']['subject']['hide_empty'] = 0;
     $display_options['fields']['subject']['empty_zero'] = 0;
     $display_options['fields']['subject']['plugin_id'] = 'field';
     $display_options['fields']['subject']['type'] = 'string';
     $display_options['fields']['subject']['settings'] = ['link_to_entity' => TRUE];
     return $display_options;
 }