public function SoEmbedFilter::settingsForm in Simple oEmbed 8.2
Same name and namespace in other branches
- 8 src/Plugin/Filter/SoEmbedFilter.php \Drupal\soembed\Plugin\Filter\SoEmbedFilter::settingsForm()
Define settings for text filter.
Overrides FilterBase::settingsForm
File
- src/
Plugin/ Filter/ SoEmbedFilter.php, line 235
Class
- SoEmbedFilter
- Provides a filter to embed media via oEmbed.
Namespace
Drupal\soembed\Plugin\FilterCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$form['soembed_maxwidth'] = [
'#type' => 'textfield',
'#title' => $this
->t('Maximum width of media embed'),
'#default_value' => $this->settings['soembed_maxwidth'],
'#description' => $this
->t('Leave to zero to use original values.'),
];
$form['soembed_replace_inline'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Replace in-line URLs'),
'#default_value' => $this->settings['soembed_replace_inline'],
'#description' => $this
->t('If this option is checked, the filter will recognize URLs even when they are not on their own line.'),
];
return $form;
}