Airship\Cabin\Bridge\Landing\Blog::editTag PHP Method

editTag() public method

Edit a tag
public editTag ( string $id = '' )
$id string
    public function editTag(string $id = '')
    {
        $id = (int) $id;
        if (!$this->can('update')) {
            \Airship\redirect($this->airship_cabin_prefix . '/blog/tag');
        }
        $tag = $this->blog->getTagInfo($id);
        $post = $this->post(new EditTagFilter());
        if (!empty($post)) {
            if ($this->processEditTag($id, $post)) {
                \Airship\redirect($this->airship_cabin_prefix . '/blog/tag');
            }
        }
        $this->lens('blog/tags_edit', ['active_link' => 'bridge-link-blog-tags', 'tag' => $tag, 'title' => \__('Edit Blog Tag "%s"', 'default', Util::noHTML($tag['name']))]);
    }