code: public static function activeLabel($model, $attribute, $options = [])
      {
          $for = ArrayHelper::remove($options, 'for', static::getInputId($model, $attribute));
          $attribute = static::getAttributeName($attribute);
          $label = ArrayHelper::remove($options, 'label', static::encode($model->getAttributeLabel($attribute)));
          return static::label($label, $for, $options);
      }
docs: Generates a label tag for the given model attribute.
  The label text is the label associated with the attribute, obtained via [[Model::getAttributeLabel()]].
  @param Model $model the model object
  @param string $attribute the attribute name or expression. See [[getAttributeName()]] for the format
  about attribute expression.
  @param array $options the tag options in terms of name-value pairs. These will be rendered as
  the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
  If a value is null, the corresponding attribute will not be rendered.
  The following options are specially handled:
  
  - label: this specifies the label to be displayed. Note that this will NOT be [[encode()|encoded]].
  If this is not set, [[Model::getAttributeLabel()]] will be called to get the label for display
  (after encoding).
  
  See [[renderTagAttributes()]] for details on how attributes are being rendered.
  
  @return string the generated label tag