Commit bccc4328 authored by webchick's avatar webchick

Issue #2214063 by benelori: 'Add vocabulary' page doesn't display correct page title.

parent 11058688
......@@ -20,7 +20,12 @@ class VocabularyFormController extends EntityFormController {
*/
public function form(array $form, array &$form_state) {
$vocabulary = $this->entity;
$form['#title'] = $this->t('Edit vocabulary');
if ($vocabulary->isNew()) {
$form['#title'] = $this->t('Add vocabulary');
}
else {
$form['#title'] = $this->t('Edit vocabulary');
}
$form['name'] = array(
'#type' => 'textfield',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment