@param string $title
@param array $params

@return CurrencyField
498129
public function scaffoldFormField($title = null, $params = null)
    {
        return CurrencyField::create($this->getName(), $title);
    }
858961
public function setTitle($title)
    {
        self::writeFullTag(
            $title,
            'title',
            true,
            'image:title',
            $this->validator,
            'validateTitle',
            $this->exception,
            'Provided title is not a valid value.'
        );

        return $this;
    }
1224567
public static function fromTitle($base, $title)
    {
        $url = static::sanitise($title);

        // If the base URL isn't empty and there's no trailing / then add one.
        if ($base && substr($base, -1) != '/') {
            $base = $base.'/';
        }

        $url = ($base == '/') ? $url : $base.$url;

        return static::makeUnique($url);
    }
725775
public function spreadsheetByTitle(string $title)
    {
        $list = $this->spreadsheetList();
        $id = Arr::get(array_flip($list), $title);

        $this->spreadsheetId = $id;

        return $this;
    }
351508
protected function _setTitleAttr($title, array $options = [])
    {
        if (!Arr::key('title', $options)) {
            $options['title'] = strip_tags($title);
        }

        return $options;
    }
1167428
public function getFromTitle( $title, array $extraParams = [] ) {
		if ( $title instanceof Title ) {
			$title = $title->getTitle();
		}
		$result =
			$this->api->getRequest(
				new SimpleRequest(
					'query',
					$this->getQuery( [ 'titles' => $title ], $extraParams )
				)
			);

		return $this->newPageFromResult( array_shift( $result['query']['pages'] ) );
	}
1014618
public function setSingular($title = [])
    {
        if (! empty($title) && isset($title[0])) {
            $this->singular = $title[0];
        } else {
            $name = str_replace('_', ' ', $this->getSlug());

            $this->singular = Str::singular(Str::title($name));
        }

        return $this;
    }
774708
public function setChildrenTitles($titles)
    {
        $expectedChildren = $this->getRequireExistingPassword() ? 3 : 2;
        if (is_array($titles) && count($titles) === $expectedChildren) {
            foreach ($this->getChildren() as $field) {
                if (isset($titles[0])) {
                    /** @var FormField $field */
                    $field->setTitle($titles[0]);

                    array_shift($titles);
                }
            }
        }

        return $this;
    }
304865
public function setTitle($title)
    {
        $this->setAutoDiscoverTitle($title === null);
        $this->title = $title;

        return $this;
    }
829592
protected function setTitle($title)
    {
        self::writeFullTag(
            $title,
            'title',
            false,
            'news:title',
            $this->validator,
            'validateTitle',
            $this->exception,
            'Provided title is not a valid value.'
        );

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

        return $this;
    }
907347
public function setTitle(string $title) {
        if($this->setModified('title', $title)->isModified()) {
            $this->title = $title;
        }

        return $this;
    }
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();
	}
900793
public function setTitle($title)
    {
        $this->title = $title;
        $this->normalizedTitle = UrlUtil::normalize($title);
        return $this;
    }
1175505
public function setTitle($title, $siteName = null, $separator = null)
    {
        $this->title->set($title)->setSeparator($separator);

        return $this->setSiteName($siteName);
    }
1038702
protected function makeSign(array $params):string
    {
        unset($params['sign']);
        kSortRecursive($params);
        $paramsString = $this->paramsToString($params);

        return md5($paramsString . md5($this->key . $this->secret));
    }
340016
protected function getHeader(array $params)
	{
		// Prepare the function's header
		$header = "/**\n";
		foreach ($params as $paramName => $paramType)
		{
			$header .= '* @param {' . $paramType . '} ' . $paramName . "\n";
		}
		$header .= "*/\n";

		return $header;
	}