php/mixins/FlaggedElement.php
public function clearFlags() {
		$remove = [];
		$classPrefix = 'oo-ui-flaggedElement-';

		foreach ( $this->flags as $flag ) {
			$remove[] = $classPrefix . $flag;
		}

		$this->flagged->removeClasses( $remove );
		$this->flags = [];

		return $this;
	}
public function clearFlags() {
		$remove = [];
		$classPrefix = 'oo-ui-flaggedElement-';

		foreach ( $this->flags as $flag ) {
			$remove[] = $classPrefix . $flag;
		}

		$this->flagged->removeClasses( $remove );
		$this->flags = [];

		return $this;
	}
public function clearFlags ( ) { $ remove = [ ] ; $ classPrefix = 'oo-ui-flaggedElement-' ; foreach ( $ this -> flags as $ flag ) { $ remove [ ] = $ classPrefix . $ flag ; } $ this -> flagged -> removeClasses ( $ remove ) ; $ this -> flags = [ ] ; return $ this ; }
Clear all flags.

@return $this
Clear all flags .