public function WebformSubmissionSubmittedToRenderedEntity::defineOptions in Webform Views Integration 8.5
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FieldPluginBase::defineOptions
File
- src/
Plugin/ views/ field/ WebformSubmissionSubmittedToRenderedEntity.php, line 58
Class
- WebformSubmissionSubmittedToRenderedEntity
- Display rendered entity which a webform submission was submitted to.
Namespace
Drupal\webform_views\Plugin\views\fieldCode
public function defineOptions() {
$options = parent::defineOptions();
// TODO: At the moment, I just cannot think of any reliable way to let users
// choose any other view_mode but the default. The complexity here is that
// we do not know the entity type ahead of time, as it's stored in DB and
// varies from one webform submission to another.
$options['view_mode'] = [
'default' => 'default',
];
return $options;
}