Use this to add a privilege that is not associated with a menu item.

@param string $privilege
@param string $label
@return \Gems_Menu
544239
public function addHiddenPrivilege($privilege, $label = null)
    {
        if (null === $label) {
            $label = $this->_('Stand-alone privilege: %s');
        }
        $this->_hiddenPrivileges[$privilege] = sprintf($label, $privilege);

        return $this;
    }
1297487
public function addLabel(Label $label)
    {
        if (!$this->labels->contains($label)) {
            $this->labels->add($label);
            $label->setInteractionMatching($this);
        }
    }
274078
public function withImage(string $name, string $label)
    {
        $this->contentGroup->images[$name] = ['name' => $name, 'label' => $label, 'order' => $this->order++];

        return $this;
    }
980882
public function label($label = null)
    {
        if (null !== $label) {
            $this->label = $label;

            return $this;
        }

        if (Lang::has($this->label)) {
            return __($this->label);
        }
        return $this->label;
    }
989570
public function optgroup($label, $options)
    {
        return Optgroup::create()
            ->label($label)
            ->addChildren($options, function ($text, $value) {
                return Option::create()
                    ->value($value)
                    ->text($text)
                    ->selectedIf($value === $this->value);
            });

        return $this->addChild($optgroup);
    }
1355887
public function addOption($value, string $label): Menu
    {
        $this->addMenuItem(
            new MenuOption(
                $value,
                $label,
                function (CliMenu $menu) {
                    $this->result = $menu->getSelectedItem()->getValue();
                    $menu->close();
                }
            )
        );

        return $this;
    }
1231824
public function addButton($label = null, $options = array())
    {
        /** @type Button $but */
        $but = $this->add('Button', $options);
        $but->set($label);
        if ($this->vertical) {
            $but->js(true)->css('margin-top', '-3px');
        }

        return $but;
    }
372621
public function setLabel($label)
    {
        $this->textContent->prepend($label);
        $this->entity->setEntityName($label);

        return $this;
    }
3704
public function update($identity, $label = null, $master = null, $status = null)
    {

        $params = array();
        if (! is_null($label)) {
            $params['label'] = $label;
        }
        if (! is_null($master)) {
            $params['master'] = $master;
        }
        if (! is_null($status)) {
            $params['status'] = $status;
        }

        return $this->_user->put('account/identity/' . $identity, $params);
    }
159499
public function create($label, $master = false, $status = 'active')
    {

        $params = array(
            'label' => $label,
            'master' => $master,
            'status' => $status
        );

        return $this->_user->post('account/identity', $params);
    }
993049
public function addButton($label, $options = array())
    {
        $position = 'after';
        if (is_string($options)) {
            $position = $options;
        } else {
            if (isset($options['position'])) {
                $position = $options['position'];
            }
        }
        if ($position == 'after') {
            /** @type Button $button */
            $button = $this->afterField()->add('Button', $options);
            $button->set($label);
        } else {
            /** @type Button $button */
            $button = $this->beforeField()->add('Button', $options);
            $button->set($label);
        }
        $this->js('change', $button->js()->data('val', $this->js()->val()));

        return $button;
    }
701783
public function addCurrentRoute($label = null)
    {
        $base = Base::instance();
        $args = ($base['PARAMS'] ?: []) + ($base['GET'] ?: []);
        unset($args[0]);

        return $this->add($base['ALIAS'], $args, $label);
    }
961941
function setLabel($label)
    {
        // normalize header label
        $label = str_replace(' ', '-', ucwords(str_replace(['_', '-'], ' ', (string) $label)));

        if (! isValidLabel($label) )
            throw new \InvalidArgumentException(sprintf(
                'Invalid header name "%s".'
                , is_null($label) ? 'null' : $label
            ));


        $this->label = $label;
        return $this;
    }
369715
protected function insertPrivileges(array $privileges)
    {
        foreach ($privileges as $privilege) {
            $this->{$privilege->getType()}(
                $privilege->getRole(), $privilege->getResource(), $privilege->getPrivilege()
            );
        }

        return $this;
    }
327484
public function isAllowed( $resource, $privilege = self::PRIVILEGE_DEFAULT, $role = null )
    {
        if ( empty( $role ) )
        {
            $role = $this->getRole();
        }

        $role       = $this->checkRole( $role );
        $resource   = $this->checkResource( $resource );

        return $this->getAcl()
                    ->isAllowed( $role,
                                 $resource,
                                 $privilege ?: self::PRIVILEGE_DEFAULT );
    }
990077
public function addPassword($name, $label = '',  $is_mandatory = true )
    {
        $e = new \FrenchFrogs\Form\Element\Password($name, $label);
        $this->addElement($e);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
834771
final protected function addMenuEntry($label, $path, $icon = null, $permission = null)
    {
        Deprecated::method(null, 'registerMenuEntries');

        $this->menuEntries[] = (new MenuEntry($label, $path))
            ->setLabel($label)
            ->setIcon($icon)
            ->setPermission($permission)
        ;
    }