* @param array $options Configuration options
*/
public function __construct( Widget $relativeInput, array $options = [] ) {
- $config = \RequestContext::getMain()->getConfig();
-
parent::__construct( $options );
$this->required = $options['required'] ?? false;
}
/**
- * {@inheritdoc}
+ * @inheritDoc
*/
public function getConfig( &$config ) {
$config['required'] = $this->required;