php/Theme.php
public function updateElementClasses( Element $element ) {
		$classes = $this->getElementClasses( $element );

		if ( method_exists( $element, 'getIconElement' ) ) {
			$element->getIconElement()
				->removeClasses( $classes['off'] )
				->addClasses( $classes['on'] );
		}
		if ( method_exists( $element, 'getIndicatorElement' ) ) {
			$element->getIndicatorElement()
				->removeClasses( $classes['off'] )
				->addClasses( $classes['on'] );
		}
	}
public function updateElementClasses( Element $element ) {
		$classes = $this->getElementClasses( $element );

		if ( method_exists( $element, 'getIconElement' ) ) {
			$element->getIconElement()
				->removeClasses( $classes['off'] )
				->addClasses( $classes['on'] );
		}
		if ( method_exists( $element, 'getIndicatorElement' ) ) {
			$element->getIndicatorElement()
				->removeClasses( $classes['off'] )
				->addClasses( $classes['on'] );
		}
	}
public function updateElementClasses ( Element $ element ) { $ classes = $ this -> getElementClasses ( $ element ) ; if ( method_exists ( $ element , 'getIconElement' ) ) { $ element -> getIconElement ( ) -> removeClasses ( $ classes [ 'off' ] ) -> addClasses ( $ classes [ 'on' ] ) ; } if ( method_exists ( $ element , 'getIndicatorElement' ) ) { $ element -> getIndicatorElement ( ) -> removeClasses ( $ classes [ 'off' ] ) -> addClasses ( $ classes [ 'on' ] ) ; } }
Update CSS classes provided by the theme.

For elements with theme logic hooks, this should be called any time there's a state change.

@param Element $element Element for which to update classes
@return array Categorized class names with `on` and `off` lists
Update CSS classes provided by the theme .