Set the link field key used by link pattern
@param string $linkFieldKey
@return $this
771031
public function setLinkFieldKey($linkFieldKey)
    {
        if (!is_string($linkFieldKey)) {
            $msg = "Link field key must be a string";
            throw new OpenStates_View_Exception($msg);
        }
        $this->linkFieldKey = $linkFieldKey;
        return $this;
    }
1144994
public void addLinkRef(final String key, final LinkRef linkRef)
    {
        this.linkRefs.put(key.toLowerCase(), linkRef);
    }
886484
public function addLinksArray($key, LinksArray $linksArray) {
		Validator::checkMemberName($key);
		
		if (isset($this->links[$key])) {
			throw new DuplicateException('link with key "'.$key.'" already set');
		}
		
		$this->links[$key] = $linksArray;
	}
493469
public function addLinksArray($key, LinksArray $linksArray) {
		$this->ensureLinksObject();
		$this->links->addLinksArray($key, $linksArray);
	}
59853
public function setForeignKey($foreignKey)
    {
        if (!$foreignKey instanceof Attribute && null !== $foreignKey) {
            throw new \InvalidArgumentException('The attribute foreignKey on the class Attribute has to be Attribute or null (' . gettype($foreignKey) . ('object' === gettype($foreignKey) ? ' ' . get_class($foreignKey) : '') . ' given).');
        }

        $this->foreignKey = $foreignKey;

        return $this;
    }
239644
public function setKey($key)
    {
        $this->key = $key;
        $this->driver->setNamespace($this->key);
    }
580579
public function setLink(string $host, Link $link): void
    {
        $this->links[$host] = $link;
    }
1064480
protected function setTokenStorageKey(string $tokenStorageKey): self
    {
        assert(empty($tokenStorageKey) === false);

        $this->tokenStorageKey = $tokenStorageKey;

        return $this;
    }
1250497
public function addField($key, $value)
    {
        $fields       = $this->_queryBuilder->getFields() ? $this->_queryBuilder->getFields() : array();
        $fields[$key] = $value;
        $this->setFields($fields);
        return $this;
    }
414564
private function getLinksetField($field)
	{					
        if (!isset($this->fields[$field['name']])) {
			$this->fields[$field['name']] =  new Iterator\Linkset( $this, $field );
			$this->fields[$field['name']]->orderBy('b.tag','ASC');
		}
        
		return $this->fields[$field['name']];   
    }
477440
public function setShowLinkText($showLinkText)
    {
        $this->showLinkText = (bool) $showLinkText;

        $this->setAttribute('data-showlinktext', (int) $this->showLinkText);

        return $this;
    }
1321710
public function setKey($key)
    {
        $this->key = $key;

        // Initialize if we're the first instance.
        if (! session()->has('bzarzuela.filters')) {
            session(['bzarzuela.filters' => [$key => []]]);
        }

        return $this;
    }
42823
public function addField(Field $field, Key $key = null)
    {
        if (null !== $key) {
            $field->setKey($key);
        }
        
        $this->fields[$field->getName()] = $field;

        return $this;
    }
1210833
public function addLink(
        $linkOrRel,
        string $href = null,
        $classes = [],
        string $title = null,
        string $type = null
    ) : self {
        $link = $linkOrRel;

        if (!$linkOrRel instanceof Link) {
            $rels    = is_array($linkOrRel) ? $linkOrRel : [$linkOrRel];
            $classes = is_array($classes) ? $classes : [$classes];
            $link    = new Link($rels, $href, $classes, $title, $type);
        }

        $this->links[] = $link;

        return $this;
    }
182343
public function setKeyName($key)
    {
        if ($this->sql) {
            if ($this->validateToken($key)) {
                $this->key = $key;
                return true;
            } else {
                throw new SimpleCache_Exception("`$key` is not a valid field name");
            }
        }
        return false;
    }
489222
public function setDevKey($key)
    {
        $this->validator->validateDeveloperKey($key);

        $this->devKey = $key;

        return $this;
    }
1248974
protected function setLink($link)
    {
        self::writeFullTag(
            $link,
            'link',
            false,
            'link',
            $this->validator,
            'validateLink',
            $this->exception,
            'Provided link is not a valid value.'
        );

        return $this;
    }