Adds a new link that will appear on the left.

@param string       $section Title of link
@param string|array $link    Link itself
178229
public function addCrumbReverse($section = null, $link = null)
    {
        array_unshift($this->path, ['section'=>$section, 'link'=>$link]);
    }
997858
public void addLink(CssLink link) {
		if (!this.links.contains(link)) {
			this.links.add(link);
		}
		Collections.sort(this.links);
	}
20507
public function addSection($key, $value = null)
    {
        if ($key instanceof Section) {
            $section = $key;
            $this->sections[$section->getKey()]
                = $section->getValue();
            return;
        }
        $this->sections[$key] = (string)$value;
    }
923697
public static function create(string $title, string $link, string $description): self
    {
        return new self($title, $link, $description);
    }
1062281
protected function concat(string $section, string $key)
    {
        if ($section === '') {
            return $key;
        }
        if ($key === '') {
            return $section;
        }
        return $section . $this->sectionKeyDelimiter . $key;
    }
726526
public function setLink($link)
    {
        if ($this->version == Feed::RSS2 || $this->version == Feed::RSS1) {
            $this->addElement('link', $link);
        } else {
            $this->addElement('link','',array('href'=>$link));
            $this->setId(Feed::uuid($link,'urn:uuid:'));
        }

        return $this;
    }
749277
static function section($section, $folder = null) {
        if(!isset(self::$sidebars[$section][$folder])) {
            self::$sidebars[$section][$folder] = new LkNgSidebar();
        }
        
        return self::$sidebars[$section][$folder];
    }
1116779
public static function title($link) {
        if(isset($link['title']) || isset($link['label'])){
            return ' title="'.trim(isset($link['title']) && !empty(trim($link['title'])) ? $link['title'] : $link['label']).'"';
        }
        return false;
    }
242226
protected function addSection($section, $contents, $overwrite = false)
    {
        if ($overwrite || !isset($this->sections[$section])) {
            $this->sections[$section] = $contents;
        }

        return $this;
    }
380425
public function addToSection($section, $test, $filePath, $lineNumber, $codeLine) {
		if (empty($section)) {
			throw new \Exception(__METHOD__.": The section can not be empty.");
		}
		$this->sectionBuffers[$section][$filePath][$test][] = [$lineNumber, $codeLine];
	}
1056006
def add_section(self, section, friendly_name = None):
  """"""
  if not isinstance(section, BASESTRING): # Make sure the user isn't expecting to use something stupid as a key.
   raise ValueError(section)
  # See if we've got this section already:
  if section in self.config:
   raise DuplicateSectionError(section) # Yep... Kick off.
  else:
   self.config[section] = OrderedDict() # Nope... Ad it
   if friendly_name == None:
    friendly_name = section.title()
   if '&' not in friendly_name:
    friendly_name = '&' + friendly_name
   self.section_names[section] = friendly_name
821797
public function append($section, array $config)
    {
        $config = array_merge([
            'config' => null,
            'view' => null,
            'script' => null,
            'menu' => null,
            'style' => null,
            'form' => null,
            'meta' => null,
            'position' => 0
        ], $config);

        if($html = $this->renderByType($config)){

            $this->inject($section, $html);

        }
    }
201966
public function addLink(Link $link)
    {
        if ( ! $this->links instanceof ArrayIterator) {
            $this->links = new ArrayIterator();
        }

        $this->links->push($link);

        return $this;
    }
146473
public function addLink(Link $link)
    {
        if (!$this->links) {
            $this->links = [];
        }
        $this->links[] = $link;
    }
1266161
public function addJs($link) {
        
        if ( ! empty($link)) {
            if ( ! is_array($link)) {
                $link = [$link];
            }
            $this->js = array_merge($this->js, $link);
        }
    }
700413
protected function prepareLink(string &$link = null): void
	{
		if ($link !== null) {
			if (Strings::endsWith($link, ':default')) {
				$link = substr($link, 0, -7);
			}
			$pos = strrpos($link, ':');
			if ($pos !== strlen($link)) {
				$link = substr($link, 0, $pos + 1);
			}
		}
	}
1152764
protected function renderSection($title, $contentArray)
	{
		//title
		echo Html::tag($this->sectionTitleTag, $title);

		//table
		echo Html::beginTag('table', $this->sectionTableOptions);
		echo Html::beginTag('tbody');
		foreach ($contentArray as $key=>$value) {
			$value = $value instanceof \Closure ? call_user_func($value) : $value;

			echo Html::beginTag('tr');
			echo Html::tag('th', $key);
			echo Html::tag('td', $value);
			echo Html::endTag('tr');
		}
		echo Html::endTag('tbody');
		echo Html::endTag('table');
	}