php/mixins/TitledElement.php
protected function updateTitle() {
		$title = $this->getTitle();
		if ( $title !== null ) {
			// Only if this is an AccessKeyedElement
			if ( method_exists( $this, 'formatTitleWithAccessKey' ) ) {
				$title = $this->formatTitleWithAccessKey( $title );
			}
			$this->titled->setAttributes( [ 'title' => $title ] );
		} else {
			$this->titled->removeAttributes( [ 'title' ] );
		}
		return $this;
	}
protected function updateTitle() {
		$title = $this->getTitle();
		if ( $title !== null ) {
			// Only if this is an AccessKeyedElement
			if ( method_exists( $this, 'formatTitleWithAccessKey' ) ) {
				$title = $this->formatTitleWithAccessKey( $title );
			}
			$this->titled->setAttributes( [ 'title' => $title ] );
		} else {
			$this->titled->removeAttributes( [ 'title' ] );
		}
		return $this;
	}
protected function updateTitle ( ) { $ title = $ this -> getTitle ( ) ; if ( $ title !== null ) { // Only if this is an AccessKeyedElement if ( method_exists ( $ this , 'formatTitleWithAccessKey' ) ) { $ title = $ this -> formatTitleWithAccessKey ( $ title ) ; } $ this -> titled -> setAttributes ( [ 'title' => $ title ] ) ; } else { $ this -> titled -> removeAttributes ( [ 'title' ] ) ; } return $ this ; }
Update the title attribute, in case of changes to title or accessKey.

@return $this
Update the title attribute in case of changes to title or accessKey .