Retourne le contenu généré pour les breadcrumbs.

@param  string $title
@return array
8580
protected function getBreadcrumbsContent($title)
    {
        if (!$stub = $this->getBreadcrumbsStub()) {
            return '';
        }

        return strtr($stub, array_merge($this->getCommonReplacements(), [
            '{{title}}' => ucfirst($title),
        ]));
    }
1346108
public function pageHeader($title)
    {
        if (is_category()) {
            return single_cat_title('', false);
        } elseif (is_tag()) {
            return single_cat_title('', false);
        } elseif (is_author()) {
            $title = '<span class="vcard">' . get_the_author() . '</span>';
        } elseif (is_year()) {
            return get_the_date(_x('Y', 'yearly archives date format'));
        } elseif (is_month()) {
            return get_the_date(_x('F Y', 'monthly archives date format'));
        } elseif (is_day()) {
            return get_the_date(_x('F j, Y', 'daily archives date format'));
        } elseif (is_post_type_archive()) {
            return post_type_archive_title('', false);
        }
        return $title;
    }
1290442
public function generateSlug($title)
    {
        $title = strtolower($title);
        $title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
        $title = preg_replace('/\s+/', '-', $title);
        $title = preg_replace('|-+|', '-', $title);
        $title = trim($title, '-');

        return $title;
    }
813765
protected function getUnifiedTitle($title)
    {
        $title = mb_strtolower($title, 'utf8');
        $title = preg_replace('/\W+/u', ' ', $title);

        return trim($title);
    }
377578
public function findOneByTitle($title)
    {
        $entityClass = $this->getEntityClass();

        return $this->getObjectManager()
                    ->getRepository($entityClass)
                    ->findOneByTitle($title);
    }
101349
public function prepareTitleForPersist($title)
    {
        // Strip whitespace (or other characters) from the beginning and end of a string
        $transformedTitle = trim($title);

        // Strip HTML and PHP tags from a string
        $transformedTitle = strip_tags($transformedTitle);

        // Strip tags, optionally strip or encode special characters
        // http://php.net/manual/en/filter.filters.sanitize.php
        $transformedTitle = filter_var($transformedTitle, FILTER_SANITIZE_STRING);

        // Uppercase the first character of each word in a string
        $transformedTitle = ucwords($transformedTitle);

        return $transformedTitle;
    }
421002
public function renderInfo($title, $subtitle, $description = false)
    {
        $output = '<div class="info header">';
        $output .= "<h1>" . Convert::raw2xml($title) . "</h1>";
        if ($subtitle) {
            $output .= "<h3>" . Convert::raw2xml($subtitle) . "</h3>";
        }
        if ($description) {
            $output .= "<p>$description</p>";
        } else {
            $output .= $this->Breadcrumbs();
        }
        $output .= '</div>';

        return $output;
    }
1148627
public function iVisitTheBlogPostPage($title)
    {
        $post = $this->findPostByTitle($title);
        $url = '/'.$post['post_name'];

        return new Then(sprintf('I go to "%s"', $url));
    }
299242
public function getBreadCrumbs()
    {
        $crumbs = [];

        if (null !== $this->parent) {
            $crumbs = $this->getParent()->getBreadCrumbs();
        }

        $crumbs[$this->slug] = $this->getShortTitle();

        return $crumbs;
    }
1205871
protected function renderTitle($title)
    {
        $obj = $this->obj();
        if ($obj->view()) {
            return $obj->render((string)$title, $obj);
        } else {
            return (string)$title;
        }
    }
1296912
private function hBlockIncludingTitle(string $title, string $html): string
    {
        return preg_replace_callback('/(<h\d\s*>\s*(.*?)\s*<\/h\d\s*>)/iu', function ($match) use ($title) {
            if (strlen($match[2]) >= 3 && strpos($title, $match[2]) !== false) {
                return '<div>' . $match[2] . '</div>';
            }

            return $match[1];
        }, $html);
    }
794201
public static function filterTitle(string $title): string
    {
        $title = html_entity_decode($title);
        $title = static::filterPunctuation($title);
        $title = preg_replace('#[^=\x20-\x3B\x3F-\x7E\xA0\x{400}-\x{45F}]+#u', ' ', $title);
        $title = preg_replace('# {2,}#', ' ', $title);

        return trim($title);
    }
262862
public function getBreadcrumbToHref($href)
    {
        $item = $this->findItemByHref($href);
        if ($item) {
            return $this->getBreadcrumbTo($item);
        } else {
            return [ ];
        }
    }
1221941
public function withTitle($title)
    {
        Assertion::string($title);
        Assertion::notBlank($title);

        $instance = clone $this;

        $instance->title = $title;

        return $instance;
    }
1207685
private static function getDisplayTitle( Title $title ) {
	    $pagetitle = $title->getPrefixedText();
	    // remove fragment
	    $title = Title::newFromText( $pagetitle );
	    
        $values = \PageProps::getInstance()->getProperties( $title, 'displaytitle' );
        $id = $title->getArticleID();
        if ( array_key_exists( $id, $values ) ) {
            $value = $values[$id];
            if ( trim( str_replace( '&#160;', '', strip_tags( $value ) ) ) !== '' ) {
                return $value;
            }
        }
        
        // no display title found
        return $title->getPrefixedText();
	}
1371540
public function iSeeTitle( $title )
    {
        trigger_error(
            "iSeeTitle is deprecated since v6.3.0 and will be removed in v7.0.0",
            E_USER_DEPRECATED
        );
        $literal = $this->getXpath()->literal( $title );
        $tags = $this->getTagsFor( "title" );
        $innerXpath = "[text() = {$literal} or .//*[text() = {$literal}]]";
        $xpathOptions = array_map(
            function( $tag ) use( $innerXpath )
            {
                return "//$tag$innerXpath";
            },
            $tags
        );

        $xpath = implode( '|', $xpathOptions );

        $el = $this->getXpath()->findXpath( $xpath );

        // assert that message was found
        EzAssertion::assertSingleElement( $title, $el, null, 'title' );
    }
1136110
public function endpoint_title( $title ) {
		global $wp_query;
		if ( isset( $wp_query->query_vars[ $this->endpoint ] ) && ! is_admin() && is_main_query() && in_the_loop() && is_account_page() ) {
			/**
			 * hametwoo_tab_title
			 *
			 * Filter for Tab title.
			 *
			 * @package hametwoo
			 * @since   0.8.0
			 * @param string $title      Original Title
			 * @param string $endpoint   Endpoint name.
			 * @param string $class_name The instance which fires this filter.
			 *
			 * @return string
			 */
			$title = apply_filters( 'hametwoo_tab_title', $this->get_title(), $this->endpoint, get_called_class() );
		}

		return $title;
	}