Adds new simple breadcrumb item. Leave target empty to create a breadcrumb item without a link.
@param string $linkName
@param string|null $target
@return void
760280
public function addSimpleItem(string $linkName, string $target = null): void
    {
        $this->items[] = ["linkName" => $linkName, "target" => $target];
    }
303212
public function addLink($linkSrc, $linkName = null, $style = null) {
		if($this->_insideOf == 'section') {
			
			$link = new PHPWord_Section_Link($linkSrc, $linkName, $style);
			$rID = PHPWord_Media::addSectionLinkElement($linkSrc);
			$link->setRelationId($rID);
			
			$this->_elementCollection[] = $link;
			return $link;
		} else {
			trigger_error('Unsupported Link header / footer reference');
			return false;
		}
	}
716292
public void symlinkTo(final String target, final TaskListener listener) throws IOException, InterruptedException {
        act(new SymlinkTo(target, listener));
    }
1174497
public function appendLinkObject($key, LinkObject $linkObject) {
		Validator::checkMemberName($key);
		
		if (isset($this->links[$key]) === false) {
			$this->addLinksArray($key, new LinksArray());
		}
		elseif ($this->links[$key] instanceof LinksArray === false) {
			throw new DuplicateException('can not add to key "'.$key.'", it is not an array of links');
		}
		
		$this->links[$key]->addLinkObject($linkObject);
	}
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;
	}
1057249
public function asLink($href=NULL,$target=NULL) {
		if (isset($href)) {
			$_target="";
			if(isset($target))
				$_target="target='{$target}'";
			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
		}
		return $this->addToProperty("class", "link");
	}
1264384
public static function addBreadcrumb(Breadcrumb $breadcrumb): void
    {
        $self = Hub::getCurrent()->getIntegration(self::class);

        if (!$self instanceof self) {
            return;
        }

        addBreadcrumb($breadcrumb);
    }
743069
public function addLinkObject($key, LinkObject $linkObject) {
		Validator::checkMemberName($key);
		
		if (isset($this->links[$key])) {
			throw new DuplicateException('link with key "'.$key.'" already set');
		}
		
		$this->links[$key] = $linkObject;
	}
1309127
public function writeLink($target)
    {
        $fileName = basename($target);
        $realTarget = realpath($target);
        $relativePathToTarget = $this->makePathRelative(dirname($realTarget), $this->binaryDir).basename($realTarget);

        // If Windows cmd link
        if (pathinfo($target, PATHINFO_EXTENSION) == "cmd") {
            $this->writeWindows($fileName, $relativePathToTarget);
        } else {
            $this->writeBash($fileName, $relativePathToTarget);
        }
    }
289385
protected static function createLink( $source, $target )
	{
		if( file_exists( $target ) === false && @symlink( $source, $target ) === false )
		{
			$source = realpath( __DIR__ . '/' . $source );

			if( symlink( $source, $target ) === false ) {
				throw new \RuntimeException( sprintf( 'Failed to create symlink for "%1$s" to "%2$s"', $source, $target ) );
			}
		}
	}
854325
public function setLink(string $name, LinkObject $link)
    {
        if (isset($this->links[$name])) {
            throw new LinkOverrideException($this, $name);
        }

        $this->links[$name] = $link;
    }
1162340
public function AddBreadcrumb($Name, $Link = NULL, $Position = 'back') {
      $Breadcrumb = array(
         'Name'   => T($Name),
         'Url'    => $Link
      );
      
      $Breadcrumbs = $this->Data('Breadcrumbs', array());
      switch ($Position) {
         case 'back':
            $Breadcrumbs = array_merge($Breadcrumbs, array($Breadcrumb));
            break;
         case 'front':
            $Breadcrumbs = array_merge(array($Breadcrumb), $Breadcrumbs);
            break;
      }
      $this->SetData('Breadcrumbs', $Breadcrumbs);
   }
1161344
public function addChild($parentUrl, Link $link)
    {
        $this->links->each(
            function ($value) use ($parentUrl, $link) {
                if ($value->url === $parentUrl) {
                    $value->children->push($link);
                    return false;
                }
            }
        );
    }
955787
@Override
    public ComponentBuilder addSymbolicLink(String target, String linkTarget) throws IOException
    {
        checkTarget(target);
        checkTarget(linkTarget);
        FileBuilder fb = new FileBuilder(target, linkTarget);
        fileBuilders.add(fb);
        return fb;
    }
1354613
public function add(InstallTarget $target)
    {
        $this->targets[$target->getName()] = $target;

        if (!$this->defaultTarget) {
            $this->defaultTarget = $target;
        }
    }
146473
public function addLink(Link $link)
    {
        if (!$this->links) {
            $this->links = [];
        }
        $this->links[] = $link;
    }
268215
public function setLinkPath($linkPath) {
        $this->linkPath = (substr($linkPath,0,1) != '/') ? '/'.$linkPath:$linkPath;
        if(substr($this->linkPath,-1) != '/') $this->linkPath .= '/';
    }