common\Language::lbl PHP Method

lbl() public static method

This only implements the key because the other parameters differ between the front- and backend.
public static lbl ( $key ) : string
$key
return string
    public static function lbl($key)
    {
        return self::callLanguageFunction('lbl', [$key]);
    }

Usage Example

Example #1
0
 /**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('email', EmailType::class, ['required' => true, 'label' => 'lbl.Email', 'attr' => ['placeholder' => ucfirst(Language::lbl('YourEmail'))]]);
     if (!empty($this->interests)) {
         $builder->add('interests', ChoiceType::class, ['choices' => $this->interests, 'expanded' => true, 'multiple' => true]);
     }
     $builder->add('subscribe', SubmitType::class, ['label' => 'lbl.Subscribe']);
 }
All Usage Examples Of common\Language::lbl