PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / trunk
Pods – Custom Content Types and Fields vtrunk
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 / Collections / Pods.php
pods / src / Pods / Blocks / Collections Last commit date
Base.php 4 months ago Pods.php 4 months ago
Pods.php
44 lines
1 <?php
2
3 namespace Pods\Blocks\Collections;
4
5 // Don't load directly.
6 if ( ! defined( 'ABSPATH' ) ) {
7 die( '-1' );
8 }
9
10 /**
11 * Block collection functionality class.
12 *
13 * @since 2.8.0
14 */
15 class Pods extends Base {
16
17 /**
18 * Get the name/slug of this block collection.
19 *
20 * @since 2.8.0
21 *
22 * @return string
23 */
24 public function slug() {
25 return 'pods';
26 }
27
28 /**
29 * Get block collection configuration to register with Pods.
30 *
31 * @since 2.8.0
32 *
33 * @return array Block collection configuration.
34 */
35 public function block_collection() {
36 return [
37 'internal' => true,
38 'label' => __( 'Pods Blocks', 'pods' ),
39 'namespace' => $this->slug(),
40 'icon' => 'pods',
41 ];
42 }
43 }
44