PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.2.2
Pods – Custom Content Types and Fields v3.2.2
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / src / Pods / Blocks / Blocks_Interface.php
pods / src / Pods / Blocks Last commit date
Collections 4 years ago Types 2 years ago API.php 2 years ago Blocks_Abstract.php 2 years ago Blocks_Interface.php 2 years ago Service_Provider.php 3 years ago
Blocks_Interface.php
79 lines
1 <?php
2
3 namespace Pods\Blocks;
4
5 /**
6 * Blocks interface.
7 *
8 * @credit The Events Calendar team - https://github.com/the-events-calendar/tribe-common
9 *
10 * @since 3.0
11 */
12 interface Blocks_Interface {
13 /**
14 * Which is the name/slug of this block
15 *
16 * @since 3.0
17 *
18 * @return string
19 */
20 public function slug();
21
22 /**
23 * Which is the name/slug of this block
24 *
25 * @since 3.0
26 *
27 * @return string
28 */
29 public function name();
30
31 /**
32 * What are the default attributes for this block
33 *
34 * @since 3.0
35 *
36 * @return array
37 */
38 public function default_attributes();
39
40 /**
41 * Since we are dealing with a Dynamic type of Block we need a PHP method to render it
42 *
43 * @since 3.0
44 *
45 * @param array $attributes
46 *
47 * @return string
48 */
49 public function render( $attributes = [] );
50
51 /**
52 * Does the registration for PHP rendering for the Block, important due to been
53 * an dynamic Block
54 *
55 * @since 3.0
56 *
57 * @return void
58 */
59 public function register();
60
61 /**
62 * Used to include any Assets for the Block we are registering
63 *
64 * @since 3.0
65 *
66 * @return void
67 */
68 public function assets();
69
70 /**
71 * Attach any specific hook to the current block.
72 *
73 * @since 3.0
74 *
75 * @return mixed
76 */
77 public function hook();
78 }
79