Finds a tag bean by it's title.

@param string $title title

@return RedBean_OODBBean $bean | null
760882
public function findTagByTitle($title) {
		$beans = $this->redbean->find('tag',array('title'=>array($title)));
		if ($beans) {
			$bean = reset($beans);
			return $bean;
		}
		return null;
	}
498112
public function title(string $title)
    {
        $name = config('app.name');

        if (empty($this->subject) && ! is_null($name)) {
            $this->subject(sprintf('[%s] %s', $name, $title));
        }

        $this->title = $title;

        return $this;
    }
1275663
public function getTagByClassName($className)
    {
        if (is_object($className)) $className = get_class($className);
        if (isset($this->known[$className]['tagName'])) {
            return $this->known[$className]['tagName'];
        } else {
            return null;
        }
    }
461472
protected function setTitle($title)
    {
        if (0 === strlen(trim($title))) {
            throw new \InvalidArgumentException('Provided title cannot be empty');
        }

        $this->title = (string) $title;
    }
340971
public function title(string $title) : self
    {
        $title = trim($title);

        if ($this->validate and ! $title) {
            throw new Exception("Open Graph: Invalid title (empty)");
        }

        $this->forget('title');

        $this->tags[] = $this->createTag('title', strip_tags($title));

        return $this;
    }
981390
public function scaffoldSearchField($title = null)
    {
        $anyText = _t('SilverStripe\\ORM\\FieldType\\DBEnum.ANY', 'Any');
        return $this->formField($title, null, true, '', "($anyText)");
    }
1074175
public function main($title)
    {
        $ret = null;

        // ############################
        // Fetch from cache
        // ############################

        $pageTitleCachingEnabled = $this->checkIfPageTitleCachingEnabled();
        if ($pageTitleCachingEnabled === true) {
            $cacheIdentification = sprintf(
                '%s_%s_title',
                $GLOBALS['TSFE']->id,
                substr(sha1(FrontendUtility::getCurrentUrl()), 10, 30)
            );

            /** @var \TYPO3\CMS\Core\Cache\CacheManager $cacheManager */
            $objectManager = Typo3GeneralUtility::makeInstance(
                'TYPO3\\CMS\\Extbase\\Object\\ObjectManager'
            );
            $cacheManager  = $objectManager->get('TYPO3\\CMS\\Core\\Cache\\CacheManager');
            $cache         = $cacheManager->getCache('cache_pagesection');

            $cacheTitle = $cache->get($cacheIdentification);
            if (!empty($cacheTitle)) {
                $ret = $cacheTitle;
            }
        }

        // ############################
        // Generate page title
        // ############################

        // Generate page title if not set
        // also fallback
        if (empty($ret)) {
            $this->initialize();
            $ret = $this->generatePageTitle($title);

            // Cache page title (if page is not cacheable)
            if ($pageTitleCachingEnabled === true && isset($cache) && isset($cacheIdentification)) {
                $cache->set($cacheIdentification, $ret, array('pageId_' . $GLOBALS['TSFE']->id));
            }
        }

        // ############################
        // Output
        // ############################

        // Call hook
        GeneralUtility::callHookAndSignal(__CLASS__, 'pageTitleOutput', $this, $ret);

        return $ret;
    }
5553
public function setRightTitle($title)
    {
        foreach ($this->getChildren() as $field) {
            /** @var FormField $field */
            $field->setRightTitle($title);
        }

        return $this;
    }
731740
public function getTitle( $throwException = TRUE )
	{
		$nodes	= $this->document->getElementsByTagName( "title" );
		if( $nodes->length )
			return $nodes->item(0)->textContent;
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['dc.title'] ) )
			return $tags['dc.title'];
		if( $throwException )
			throw new RuntimeException( 'Neither Title Tag not Title Meta Tag found.' );
		return "";
	}
325527
public function setTitle( $title )
	{
	    $this->title = $title;
		$this->jsWriter->setOption( 'title', $title );

		return $this;
	}
904887
public function handleTitle($title)
    {
        if (is_null($request = $this->getRequest()) || empty($this->titles)) {
            return $title;
        }

        if (in_array($action = $request->get('action'), array_keys($this->titles))) {
            return $this->titles[$action];
        }

        return $title;
    }
1300857
private function findPostByTitle($title)
    {
        $postEntity = $this->getPhabric()->getEntity('Post');
        $post = $postEntity->getNamedItem($title);

        if (!$post) {
            throw new \LogicException(sprintf('Could not find a blog post of given title: "%s"', $title));
        }

        return $post;
    }
629968
protected function findOrMakeTag(Relation $relation, $title)
    {
        // Obtain Data List:
        
        $list = $this->getList();
        
        // Obtain Field Name:
        
        $field = $this->getIDField();
        
        // Obtain Existing Tag:
        
        if ($tag = $list->find($field, $title)) {
            return $tag;
        }
        
        // Create New Tag (if enabled):
        
        if ($this->getCanCreate()) {
            $tag = Injector::inst()->create($this->getTagClass($relation));
            $tag->setField($field, $title)->write();
            return $tag;
        }
    }
309441
public function createTitle($title)
    {
        $item = $this->list->createList($title);
        $item->attributes->addAttributeClass('menu-title');

        return $item;
    }
171634
public function setTitle($title)
    {
        // if the alias is empty use the title for the alias.
        if ($this->_alias === null) {
            $this->setAlias($title);
        }
        
        $this->_title = $title;
        
        return $this;
    }
818943
public function setTitle($title, $siteName = null, $separator = null)
    {
        return $this->seo()->setTitle($title, $siteName, $separator);
    }
900793
public function setTitle($title)
    {
        $this->title = $title;
        $this->normalizedTitle = UrlUtil::normalize($title);
        return $this;
    }