Returns the widget id and copies it to HTML attributes or vice versa.
@param string $id the widget id.
@return string the widget id.
963937
public function resolveId($id = null)
    {
        if ($id === null) {
            $id = $this->owner->getId();
        }
        if (isset($this->owner->htmlOptions['id'])) {
            $id = $this->owner->htmlOptions['id'];
        } else {
            $this->owner->htmlOptions['id'] = $id;
        }
        return $id;
    }
1082587
public function contentId($id = null)
    {
        if ($id === null) {
            return $this->_contentId;
        }
        $this->_contentId = $id;
    }
1014591
public function copy($id)
    {
        $uriAppend = 'copy/' . $id;

        $response = $this->handler->handle('POST', false, $uriAppend);

        return $this->make($response, false);
    }
368119
public function getItemByID(int $id): WidgetModelContract
    {
        return $this->model::find($id) ?? new $this->model;
    }
425799
public static function get_widget_instance( $widget_id ) {
		global $wp_registered_widgets;

		if ( ! isset( $wp_registered_widgets[ $widget_id ] ) ) {
			return false;
		}

		$model = $wp_registered_widgets[ $widget_id ]['callback'][0];

		if ( ! is_a( $model, 'Lean\Widgets\Models\AbstractWidget' ) ) {
			return false;
		}

		$key = $wp_registered_widgets[ $widget_id ]['params'][0]['number'];

		$model->_set( $key );

		return $model;
	}
773718
public function id($id = null)
    {
        if (is_null($id)) {
            return $this->id;
        }

        $this->id = $id;

        return $this;
    }
685226
public function get($id)
    {
        return $this->_sendPayload(
            $this->_getService($this->_pageServiceKey)->getTemplateLayout($id)
        );
    }
30810
protected function _id($id)
    {
        if (($id !== null) && isset($this->_options['cache_id_prefix'])) {
            return $this->_options['cache_id_prefix'] . $id; // return with prefix
        }
        return $id; // no prefix, just return the $id passed
    }
682230
public function inspect(string $id)
    {
        $url = $this->url.'/'.$id;

        return $this->curl->get($url);
    }
349048
public function get_page_type_idstring($id) {
        foreach ($this->types as $pagetype) {
            if ((int)$pagetype->typeid === (int)$id) {
                return $pagetype->idstring;
            }
        }
        return 'unknown';
    }
962336
public function &getElementById( $id )
	{
		$id = urldecode( $id );

		$fragment = parse_url( $id, PHP_URL_FRAGMENT );
		$fragment = $fragment ? $fragment : $id;

		if ( ! isset( $this->elementIndex[ $fragment ] ) )
		{
			$false = false;
			return $false;
		}
		$element = &$this->elementIndex[ $fragment ];
		return $element;
	}
193218
protected function getAbstractId($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return $id;
    }
282126
public function addWidget($id)
    {
        if (!(int)$id) return $this;
        $this->widgets[] = $this->application->getWidget( (int)$id );
        return $this;  
    }
982291
public function getImgUrlById($id, $thumb = true)
    {
        $id = (int)$id;
        $data = $this->getDataById($id);
        if (null === $data) {
            return '';
        } else {
            $suffix = $thumb ? $this->_suffixes['thumb'] : $this->_suffixes['large'];
            return 'http://media.steampowered.com/apps/dota2/images/' . $this->_field . '/' . $data['name'] . '_' . $suffix . '.png';
        }
    }
1321319
public function getGuild4Id($id)
    {
        /** @var \GameBackend\Entity\SRO\Shard\Repository\Guild $repository */
        $repository = $this->getShardEntityManager()->getRepository($this->getGameOptions()->getEntityShardGuild());
        return $repository->getGuild4Id($id, $this->getGeneralOptions()->getGuildBlackList());
    }
1115011
public function parameters($id, $widget)
    {
        $widget    = Widget::withoutGlobalScope('menu_assignment')->findOrNew($widget);
        $extension = $this->repository->findOrFail($id);
        $formView  = $extension->param('form');

        if (view()->exists($formView)) {
            return view($formView, compact('widget'));
        }

        return view('widgets.partials.none');
    }
882015
public function buildId($id)
    {
        $parts = explode(' ', $id, 2);
        if (count($parts) === 2) {
            return $this->buildIdWithAlias($parts[0], $parts[1]);
        }

        return $this->wrap($id);
    }