1 | <?php |
||
10 | class Entry extends Block { |
||
11 | const BLOCK_NAME = 'entry'; |
||
12 | |||
13 | /** |
||
14 | * Generate `[gventry]` shortcode |
||
15 | * |
||
16 | * @param array $attributes |
||
17 | * array['view_id'] string The numeric View ID the entry should be displayed from. |
||
18 | * array['id'] string A numeric ID or slug referencing the entry. Or the last, first entry from the View. The View's sorting and filtering settings will be applied to the entries |
||
19 | * |
||
20 | * @return string $output |
||
21 | */ |
||
22 | static function render( $attributes = array() ) { |
||
44 | } |
||
45 |
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.