/** * @param name The field name * @param title The field title * @param value The current value */ public function __construct($name, $title = "", $value = "") { $this->labelMore = _t('ToggleField.MORE', 'more'); $this->labelLess = _t('ToggleField.LESS', 'less'); $this->startClosed(true); parent::__construct($name, $title, $value); }
/** * @inheritdoc * * @param string $name * @param string $title * @param string $value */ public function __construct($name, $title = '', $value = '') { Deprecation::notice('4.0', 'Use custom javascript with a ReadOnlyField'); $this->labelMore = _t('ToggleField.MORE', 'more'); $this->labelLess = _t('ToggleField.LESS', 'less'); $this->startClosed(true); parent::__construct($name, $title, $value); }