tableRow = new Tag( 'div' ); $this->tableRow->setAttributes( [ 'class' => 'oo-ui-labelIconWidget-row', ] ); $this->icon = new Tag( 'div' ); $this->label = new Tag( 'div' ); $this->initializeIconElement( array_merge( $config, [ 'iconElement' => $this->icon ] ) ); $this->initializeLabelElement( array_merge( $config, [ 'labelElement' => $this->label ] ) ); $this->initializeTitledElement( $config ); $this->addClasses( [ 'oo-ui-labelIconWidget' ] ); $this->tableRow->appendContent( $this->icon, $this->label ); $this->appendContent( $this->tableRow ); } }