1 | <?php |
||
10 | class Entry_Link extends Block { |
||
11 | const BLOCK_NAME = 'entry-link'; |
||
12 | |||
13 | /** |
||
14 | * Generate `[gv_entry_link]` shortcode |
||
15 | * |
||
16 | * @param array $attributes |
||
17 | * array['view_id'] string The ID for the View where the entry is displayed |
||
18 | * array['entry_id'] string ID of the entry to edit |
||
19 | * array['action'] string Define which type of link you want to display. valid values are : read, edit, delete |
||
20 | * array['post_id'] string If you want to have the Edit Entry link go to an embedded View, pass the ID of the post or page where the View is embedded |
||
21 | * array['return'] string What should the shortcode return. valid values are : html, url |
||
22 | * array['link_atts'] string Attributes to pass to the link tag generator to add to the <a> tag |
||
23 | * array['field_values'] string Parameters to pass URL arguments to the link |
||
24 | * array['content'] string The anchor text can be set by this attribute |
||
25 | * |
||
26 | * @return string $output |
||
27 | */ |
||
28 | static function render( $attributes = array() ) { |
||
64 | } |
||
65 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.