public function detailsJSON($lang, $id)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('Tags', 'update')) {
            return $this->noPermission();
        }

        $tags = Tag::find($id);
        $media = Media::find($tags->featuredImageID);
        $final = array(
            'details' => $tags,
            'featuredImage' => $media
        );

        // Fire event
        $final['events'] = Event::fire('tag:pre_update', [$final]);
        return $final;
    }
public function detailsJSON($lang, $id)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('Tags', 'update')) {
            return $this->noPermission();
        }

        $tags = Tag::find($id);
        $media = Media::find($tags->featuredImageID);
        $final = array(
            'details' => $tags,
            'featuredImage' => $media
        );

        // Fire event
        $final['events'] = Event::fire('tag:pre_update', [$final]);
        return $final;
    }
public function detailsJSON ( $ lang , $ id ) { // check if user has permissions to access this link if ( ! User :: hasAccess ( 'Tags' , 'update' ) ) { return $ this -> noPermission ( ) ; } $ tags = Tag :: find ( $ id ) ; $ media = Media :: find ( $ tags -> featuredImageID ) ; $ final = array ( 'details' => $ tags , 'featuredImage' => $ media ) ; // Fire event $ final [ 'events' ] = Event :: fire ( 'tag:pre_update' , [ $ final ] ) ; return $ final ; }
JSON object with details for a specific tag.
All data used in update form.

@param  string $lang
@param  int    $id
@return array
JSON object with details for a specific tag . All data used in update form .