'#title'=>$this->t('Automatically include table of contents'),
'#description'=>$this->t('If set, a table of contents will be added when a <code>[toc]</code> token is not present in the content.'),
@@ -65,12 +67,21 @@ class TocFilter extends FilterBase {
],
'#default_value'=>$this->settings['auto'],
];
$form['block']=[
'#title'=>$this->t('Display table of contents in a block.'),
'#description'=>$this->t('Please make sure to place the <a href=":href">TOC filter</a> block on your site.',[':href'=>URL::fromRoute('block.admin_display')->toString()]),
'#type'=>'checkbox',
'#default_value'=>$this->settings['block'],
];
$form['exclude_above']=[
'#title'=>$this->t('Exclude text above the TOC'),
'#description'=>$this->t('If selected, the text above the <code>[toc]</code> token will not be considered when building the TOC.'),