'#title'=>t('Content types allowed in book outlines'),
'#title'=>$this->t('Content types allowed in book outlines'),
'#default_value'=>$config->get('allowed_types'),
'#default_value'=>$config->get('allowed_types'),
'#options'=>$types,
'#options'=>$types,
'#description'=>t('Users with the %outline-perm permission can add all content types.',array('%outline-perm'=>t('Administer book outlines'))),
'#description'=>$this->t('Users with the %outline-perm permission can add all content types.',array('%outline-perm'=>$this->t('Administer book outlines'))),
'#required'=>TRUE,
'#required'=>TRUE,
);
);
$form['book_child_type']=array(
$form['book_child_type']=array(
'#type'=>'radios',
'#type'=>'radios',
'#title'=>t('Content type for child pages'),
'#title'=>$this->t('Content type for child pages'),
'#default_value'=>$config->get('child_type'),
'#default_value'=>$config->get('child_type'),
'#options'=>$types,
'#options'=>$types,
'#required'=>TRUE,
'#required'=>TRUE,
...
@@ -48,19 +48,19 @@ public function buildForm(array $form, array &$form_state) {
...
@@ -48,19 +48,19 @@ public function buildForm(array $form, array &$form_state) {
form_set_error('book_child_type',t('The content type for the %add-child link must be one of those selected as an allowed book outline type.',array('%add-child'=>t('Add child page'))));
form_set_error('book_child_type',$this->t('The content type for the %add-child link must be one of those selected as an allowed book outline type.',array('%add-child'=>$this->t('Add child page'))));