Example #1
0
  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state, BlockTabsInterface $blocktabs = NULL, $tab = NULL) {
    $form = parent::buildForm($form, $form_state, $blocktabs, $tab);

    $form['#title'] = $this->t('Edit %label tab', array('%label' => $this->tab->label()));
    $form['actions']['submit']['#value'] = $this->t('Update tab');

    return $form;
  }
Example #2
0
  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state, BlockTabsInterface $blocktabs = NULL, $tab = NULL) {
    $form = parent::buildForm($form, $form_state, $blocktabs, $tab);
    //drupal_set_message('term_id:' . var_export($tab));
    $form['#title'] = $this->t('Add %label tab', array('%label' => $this->tab->label()));
    $form['actions']['submit']['#value'] = $this->t('Add tab');

    return $form;
  }