public function RiddleView::getForm in Thunder 8.3
Same name and namespace in other branches
- 8.5 modules/thunder_riddle/src/Plugin/EntityBrowser/Widget/RiddleView.php \Drupal\thunder_riddle\Plugin\EntityBrowser\Widget\RiddleView::getForm()
- 8.2 modules/thunder_article/modules/thunder_riddle/src/Plugin/EntityBrowser/Widget/RiddleView.php \Drupal\thunder_riddle\Plugin\EntityBrowser\Widget\RiddleView::getForm()
- 8.4 modules/thunder_article/modules/thunder_riddle/src/Plugin/EntityBrowser/Widget/RiddleView.php \Drupal\thunder_riddle\Plugin\EntityBrowser\Widget\RiddleView::getForm()
File
- modules/
thunder_article/ modules/ thunder_riddle/ src/ Plugin/ EntityBrowser/ Widget/ RiddleView.php, line 25
Class
- RiddleView
- Displays current selection in a View.
Namespace
Drupal\thunder_riddle\Plugin\EntityBrowser\WidgetCode
public function getForm(array &$original_form, FormStateInterface $form_state, array $additional_widget_parameters) {
$form = parent::getForm($original_form, $form_state, $additional_widget_parameters);
$form['actions']['import_riddle'] = [
'#title' => $this
->t('Import my riddles'),
'#type' => 'link',
'#attributes' => [
'class' => [
'button',
],
],
'#url' => Url::fromRoute('riddle_marketplace.import'),
];
return $form;
}