-
- // Properties
- if ( isset( $config['default'] ) ) {
- $this->usersArray = $config['default'];
- }
- if ( isset( $config['name'] ) ) {
- $this->inputName = $config['name'];
- }
- if ( isset( $config['placeholder'] ) ) {
- $this->inputPlaceholder = $config['placeholder'];
- }
-
- $textarea = new MultilineTextInputWidget( [
- 'name' => $this->inputName,
- 'value' => implode( "\n", $this->usersArray ),
- 'rows' => 25,
- ] );
- $this->prependContent( $textarea );