Make the anchor active

@return static
504061
public function activate()
    {
        $this->isActive            = true;
        $this->attributes['class'] = Utils::addHtmlClass(
            array_get($this->attributes, 'class', ''),
            $this->activeClass
        );

        return $this;
    }
1296850
public function setIsActive($active)
    {
        $active = $active ? true : false;
        $this->isActive = $active;

        return $this;
    }
57868
public function create()
    {
        $menu = $this->handler->add($this->name, $this->getAttribute('position'))
                    ->title($this->getAttribute('title'))
                    ->link($this->getAttribute('link'))
                    ->handles($this->menu['link'] ?? null);

        $this->attachIcon($menu);
        $this->handleNestedMenu();

        return $this;
    }
1176682
public function deactivate()
    {
        $this->activated_at = null;
        $this->active = false;

        EventManager::instance()->dispatch(new Event('Wasabi.User.deactivated', $this));

        return $this;
    }
51808
public function navlink() {
		$attributes = [
			'role'          => 'tab',
			'aria-controls' => $this->uniqid(),
			'data-section'  => $this->id,
			'data-open'     => ! empty( $this->options['active'] ) ? 'true' : 'false',
		];

		return sprintf( '<li%1$s><a href="#" aria-expanded="false">%3$s <span>%2$s</span></a></li>',
			Utils::build_html_attributes( $attributes ),
			esc_html( $this->title ?: $this->id ),
			$this->icon()
		);
	}
380674
public function setAsActive()
    {
        if ( ! $this->exists() ) {
            throw new FileExistException('Remote template does not exist');
        }

        try {
            $this->getSoapClient()->SetRemoteTemplate(['filename' => $this->getName() ]);
            $this->isActive = true;

            return $this;
        } catch ( SoapException $ex ) {
            throw new ActiveException('Error while setting the remote template as the active template' , $ex);
        }
    }
1049554
public function activateJQuery()
    {
        if ($this->_no_jquery) {
            parent::activateJQuery();

            $this->addPrefixPath('Gems_JQuery_Form_Decorator', 'Gems/JQuery/Form/Decorator/', \Zend_Form::DECORATOR);
            $this->addPrefixPath('Gems_JQuery_Form_Element', 'Gems/JQuery/Form/Element/', \Zend_Form::ELEMENT);
        }

        return $this;
    }
769506
public function search_for_active_node() {
        if ($this->check_if_active(URL_MATCH_BASE)) {
            return $this;
        } else {
            foreach ($this->children as &$child) {
                $outcome = $child->search_for_active_node();
                if ($outcome !== false) {
                    return $outcome;
                }
            }
        }
        return false;
    }
866497
protected function doActive($href, $label)
    {
        if (is_array($this->active) && array_key_exists('callback', $this->active)) {
            $this->active = $this->active['callback'];
        }

        if ($this->active) {
            // Find active path in array
            if (is_array($this->active) && count($this->active) > 0) {
                $result = array_search($href, $this->active);

                if ($result !== false) {
                    unset($this->active[$result]);

                    return 'class="active"';
                }
            }

            // Run the closure for user customizable
            elseif ($this->active instanceof Closure) {
                call_user_func_array($this->active, [$this, $href, $label]);
                $attrs = $this->renderAttr($this->optionAttr);
                $this->optionAttr = null;

                return $attrs;
            } else {
                if ($this->active == $href) {
                    $this->active = null;

                    return 'class="active"';
                }
            }
        }
    }
29372
public function activeElement()
    {
        $response = $this->driver->execute(DriverCommand::GET_ACTIVE_ELEMENT, []);
        $method = new RemoteExecuteMethod($this->driver);

        return new RemoteWebElement($method, $response['ELEMENT']);
    }
919076
protected function set_active_styles() {

		$style = '.' . $this->id() . ' .dashicons.dashicons-plus-alt{ color: ' . $this->base_color() . ' !important;}';
		$style .= '.' . $this->id() . ' .column-handle{background-color: ' . $this->base_color() . ' !important;}';
		$style .= '.' . $this->id() . ' .uix-component-toolbar{background-color: ' . $this->base_color() . ' !important;}';
		$style .= '.' . $this->id() . '.processing:after {background: url(' . $this->url . 'assets/svg/loading.php?base_color=' . urlencode( str_replace( '#', '', $this->base_color() ) ) . ') no-repeat center center;}';

		uix_share()->set_active_styles( $style );

	}
1351303
public function makeBinding()
    {
        $this->sortByConditionPriority();

        foreach ($this->routes as $route) {
            /** @var RouteConditionInterface $condition */
            $condition = $route['condition'];

            /** @var Action $action */
            $action = $route['action'];

            $condition->bindWithAction($action);
        }
    }
229546
public static function enable()
    {
        Field::macro(self::MACRO_METHOD, function (Field $field) {
            return new static($field->getClassMetadata(), $field->getName());
        });
    }
3447
protected function doBind() {
        $parsed = self::$parser->parse($this->statement);
        $index = 0;
        $params = $this->getParameters();
        $this->walk($parsed, $index, $params);
        return self::$creator->create($parsed);
    }
1084938
public function isActive($active = true)
    {
        if (! is_bool($active)) {
            $active = false;
        }
        $this->isActive = $active;

        return $this;
    }
793795
protected function set_active_styles() {

		$style = 'h3#' . $this->id() . '_uixModalLable { background: ' . $this->base_color() . '; }';
		$style .= '#' . $this->id() . '_uixModal.uix-modal-wrap > .uix-modal-body:after {background: url(' . $this->url . 'assets/svg/loading.php?base_color=' . urlencode( str_replace( '#', '', $this->base_color() ) ) . ') no-repeat center center;}';

		uix_share()->set_active_styles( $style );
		parent::set_active_styles();
	}
58787
public function isActive($currentUrl)
    {
        $activeUrls = $this->getActiveUrls();

        return
            $currentUrl == $this->url ||
            (
                is_array($activeUrls) &&
                in_array($currentUrl, $this->getActiveUrls())
            );
    }