1 | <?php |
||
10 | class View_Details extends Block { |
||
11 | const BLOCK_NAME = 'view-details'; |
||
12 | |||
13 | /** |
||
14 | * Generate `[gravityview]` shortcode |
||
15 | * |
||
16 | * @param array $attributes |
||
17 | * array['id'] string The ID of the View you want to display |
||
18 | * array['detail'] string Display specific information about a View. Valid values are total_entries, first_entry, last_entry, page_size |
||
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.