Get edit link for this item

@return string
197641
public function CMSEditLink()
    {
        $link = $this->getObjectInStage(Versioned::DRAFT);
        if ($link instanceof CMSPreviewable) {
            return $link->CMSEditLink();
        }
        return null;
    }
45870
protected function get_edit_tour_link($id = null) {
        $addlink = helper::get_edit_tour_link($id);
        return \html_writer::link($addlink, get_string('newtour', 'tool_usertours'));
    }
661154
protected function get_review_link() {
		if ( false === $this->op['review_link'] ) {
			$link = '';
			if ( 'wordpress' === $this->op['site'] ) {
				$link = 'https://wordpress.org/support/';

				switch ( $this->op['type'] ) {
					case 'theme':
						$link .= 'theme/';
						break;
					case 'plugin':
						$link .= 'plugin/';
						break;
				}

				$link .= $this->op['type'] . '/reviews';

				$link = \add_query_arg( 'rate', $this->op['rating'], $link ) . \esc_url( $link . '#new-post' );
			} elseif ( 'codecanyon' === $this->op['site'] ) {
				$link = 'https://codecanyon.net/item/x/reviews/' . $this->op['item_id'] . '#rating-' . $this->op['item_id'];
			} elseif ( 'themeforest' === $this->op['site'] ) {
				$link = 'https://themeforest.net/item/x/reviews/' . $this->op['item_id'] . '#rating-' . $this->op['item_id'];
			}

			return $link;
		}

		return $this->op['review_link'];
	}
91320
public function getHTML()
    {
        $html = '';
        switch (arg('action'))
        {
            case 'add':
                $html = $this->actionAddDialog();
                break;

            case 'create':
                $html = $this->actionCreate();
                break;

            default:

                switch (true)
                {
                    case arg('edit'):
                        $html = $this->actionEditDialog(arg('edit'));
                        break;

                    case arg('update'):
                        $html = $this->actionUpdate();
                        break;

                    case arg('delete'):
                        $this->actionDelete(arg('delete'));
                        break;

                    default:
                        $html = $this->actionIndex();
                }
                break;
        }
        return $html;
    }
607485
public function objectEditUrl()
    {
        $model = $this->proto();
        $url   = 'object/edit?main_menu={{ main_menu }}&obj_type='.$this->objType();

        if ($model->view()) {
            $url = $model->render((string)$url);
        } else {
            $url = preg_replace('~{{\s*id\s*}}~', $this->currentObjId, $url);
        }

        return $url;
    }
135071
public function getAdminUrlsAttribute()
    {
        $id = $this->attributes['id'];
        $type = $this->attributes['type_id'];

        $urls['edit'] = route('chronos.content.edit', ['type' => $type, 'content' => $id]);
        $urls['edit_fieldsets'] = route('chronos.content.fieldset', ['type' => $type, 'content' => $id]);

        if (settings('is_multilanguage') && ContentType::find($type)->translatable) {
            foreach ($this->translations as $translation) {
                $urls['translations'][$translation->language] = route('chronos.content.edit', ['type' => $translation->type, 'content' => $translation->id]);
            }
        }

        return $urls;
    }
79354
public function get_url() {
        if ($this->courseid) {
            $cat = $this->other['newcategoryid'] . ',' . $this->contextid;
            if ($this->contextlevel == CONTEXT_MODULE) {
                return new \moodle_url('/question/edit.php',
                        ['cmid' => $this->contextinstanceid, 'cat' => $cat, 'lastchanged' => $this->objectid]);
            }
            return new \moodle_url('/question/edit.php',
                    ['courseid' => $this->courseid, 'cat' => $cat, 'lastchanged' => $this->objectid]);
        }
        // Lets try viewing from the frontpage for contexts above course.
        return new \moodle_url('/question/category.php',
                ['courseid' => SITEID, 'edit' => $this->other['newcategoryid'], 'lastchanged' => $this->objectid]);
    }
462044
public function editAction()
    {
        $id = (int) $this->params()->fromRoute('id', null);

        $request = $this->getRequest();
        $service = $this->getService();
        $entity  = $service->getById($id);

        $form     = $this->getEditForm();
        $form->bind($entity);

        if ($request->getQuery()->get('redirect')) {
            $redirect = $request->getQuery()->get('redirect');
        } else {
            $redirect = false;
        }

        $redirectUrl = $this->url()->fromRoute($this->getEditActionRoute(), array('id' => $id)) . ($redirect ? '?redirect=' . $redirect : '');
        $prg = $this->prg($redirectUrl, true);

        if ($prg instanceof Response) {
            return $prg;
        } elseif ($prg === false) {
            return array(
                'options'  => $this->getOptions(),
                'id'       => $id,
                'form'     => $form,
                'redirect' => $redirect,
            );
        }

        $post   = $prg;
        $entity = $service->update($id, $post);

        $redirect = isset($prg['redirect']) ? $prg['redirect'] : null;

        if (!$entity) {
            return array(
                'options'  => $this->getOptions(),
                'id'       => $id,
                'form'     => $form,
                'redirect' => $redirect,
            );
        }

        return $this->redirect()->toUrl($this->url()->fromRoute($this->getRouteIdentifierPrefix()) . ($redirect ? '?redirect='.$redirect : ''));
    }
1074046
public function getEditLanguage()
    {
        if ($this->_iEditLanguageId === null) {
            if (!$this->isAdmin()) {
                $this->_iEditLanguageId = $this->getBaseLanguage();
            } else {
                $iLang = null;
                // choosing language ident
                // check if we really need to set the new language
                if ("saveinnlang" == \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView()->getFncName()) {
                    $iLang = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("new_lang");
                }
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('editlanguage') : $iLang;
                $iLang = ($iLang === null) ? $this->getBaseLanguage() : $iLang;

                // validating language
                $this->_iEditLanguageId = $this->validateLanguage($iLang);

                // writing to session
                \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('editlanguage', $this->_iEditLanguageId);
            }
        }

        return $this->_iEditLanguageId;
    }
366849
public function get_edit_post_link( $post_id ) {
		if ( ! $post = get_post( $post_id ) ) {
			return admin_url( 'edit.php?post_type=' . $this->get_post_type() );
		}
		$post_type_object = get_post_type_object( $post->post_type );
		if ( ! $post_type_object ) {
			return admin_url( 'edit.php?post_type=' . $this->get_post_type() );
		}
		$action = '&action=edit';

		return admin_url( sprintf( $post_type_object->_edit_link . $action, $post->ID ) );
	}
1190335
public function getHeaderText()
    {
        $rule = $this->registry->registry('current_ddg_rule');

        if ($rule->getId()) {
            return __('Edit Rule %1', $this->escapeHtml($rule->getName()));
        } else {
            return __('New Rule');
        }
    }
453881
protected function getLink()
    {
        if ($this->link_value === null) {
            $link = $this->link;
        } elseif (is_array($this->link_value)) {
            $link_values = array();

            foreach ($this->link_value as $value) {
                $link_values[] = urlencode($value);
            }

            $link = vsprintf($this->link, $link_values);
        } else {
            $link_value = urlencode($this->link_value);
            $link = sprintf($this->link, $link_value);
        }

        return $link;
    }
28484
public function getRelativeLink()
    {
        $path = $this->getRelativePath();
        $url = explode('/', $path);
        $url = implode(
            '/',
            array_map(
                function ($a) {
                    return DocumentationHelper::clean_page_url($a);
                },
                $url
            )
        );

        $url = trim($url, '/') . '/';

        return $url;
    }
103360
public function getAdminLinkAttribute()
    {
        if ($this->admin_id) {
            return sprintf('<a href="%s">%s</a>',
                $this->filterUrl(['admin_id' => $this->admin_id]),
                $this->admin->getAdminTitleHtmlAttribute());
        } else {
            return 'Someone';
        }
    }
1045686
public function getLinkA() {
		if($this->reverse()->isPolymorphic())
			return $this->reverse()->get('as').'_id';
		else
			return $this->reverse()->getName().'_id';
	}
960962
public function getLinkedTitleAttribute()
    {
        if (!$this->title) return;
        return sprintf('<a href="%s">"%s"</a>',
            $this->filterUrl(['model' => $this->model, 'key' => $this->key]),
            $this->title);
    }
873176
protected function render_delete_link(): string
    {
        if (!\current_user_can(
            $this->post->type()->cap->delete_post,
            $this->post->get()->ID
        )) {
            return '';
        }

        return '<a class="delete-post-link" onclick="return confirm(\''.
            \sprintf(
                \esc_html__('Delete %s?', 'grotto-wp-posts'),
                \esc_attr(\get_the_title($this->post->get()))
            ).
            '\')" href="'.\esc_attr(\get_delete_post_link($this->post->get()->ID)).
            '"  itemprop="url">'.\esc_html__('Delete', 'grotto-wp-posts').'</a>';
    }