getRawSectionTitle(); if ( !$plaintext ) { return false; } $plaintext = trim( $plaintext ); return $this->language->truncateForVisual( $plaintext, EchoDiscussionParser::DEFAULT_SNIPPET_LENGTH ); } /** * @inheritDoc */ public function getTitleWithSection() { $title = $this->event->getTitle(); if ( $title === null ) { throw new RuntimeException( 'Event #' . $this->event->getId() . ' with no title' ); } $section = $this->getParsedSectionTitle(); if ( $section ) { $title = $title->createFragmentTarget( $section ); } return $title; } }