@@ -78,9 +78,9 @@ class OutlookCalendarSettingsForm extends ConfigFormBase {
$form['content_type']=[
'#type'=>'select',
'#title'=>$this->t('Content type'),
'#description'=>$this->t('Pick the content type you want to enable this functionality on. When you place the "Add node to calendar" block this setting will prevent that block from being shown on other content types then the one selected.'),
'#options'=>static::getNodeTypeOptions(),
'#title'=>$this->t('Entity type and bundle'),
'#description'=>$this->t('Pick the entity type and bundle you want to enable this functionality on. When you place the "Add node to calendar" block this setting will prevent that block from being shown on other content types then the one selected.'),
'#options'=>static::getEntityTypeOptions(),
'#default_value'=>$config->get('content_type'),
'#ajax'=>[
'wrapper'=>'content-type-fieldset-wrapper',
@@ -93,6 +93,13 @@ class OutlookCalendarSettingsForm extends ConfigFormBase {
],
];
$form['content_entity_form_id']=[
'#type'=>'textfield',
'#title'=>$this->t('The form id of the custom entity'),
'#description'=>$this->t('Only needs to be filled in when selecting a custom content entity. For regular nodes leave this field empty. If you need multiple form ids (e.g add and edit) you can separate them with a comma (",").'),