小编Emi*_*lio的帖子

{inheritdoc} 的需求是什么?

我经常与 Drupal 和类打交道,有时我读到类似的内容:

/**
  * {@inheritdoc}
  */

  // return the form definition
  public function buildForm(array $form, FormStateInterface $form_state) {
    $config = $this->config('hello_world.custom_salutation');

    $form['salutation'] = array(
      '#type' => 'textfield',
      '#title' => $this->t('Salutation'),
      '#description' => $this->t('Si prega di inserire il saluto che si desidera usare'),
      '#default_value' => $config->get('salutation'),
    );
Run Code Online (Sandbox Code Playgroud)

继承的意思是什么?

php drupal

3
推荐指数
1
解决办法
1737
查看次数

标签 统计

drupal ×1

php ×1