File: /home/slyfwmm/laretediclo/wp-content/plugins/pods/src/Pods/Blocks/Collections/Base.php
<?php
namespace Pods\Blocks\Collections;
/**
* Block Collection functionality class.
*
* @since 2.8.0
*/
abstract class Base {
/**
* Register the block collection with Pods.
*
* @since 2.8.0
*/
public function register_with_pods() {
$collection = $this->block_collection();
if ( empty( $collection ) ) {
return;
}
$collection['name'] = $this->slug();
pods_register_block_collection( $collection );
}
/**
* Get the name/slug of this block collection.
*
* @since 2.8.0
*
* @return string
*/
public function slug() {
return '';
}
/**
* Get block collection configuration to register with Pods.
*
* @since 2.8.0
*
* @return array Block collection configuration.
*/
public function block_collection() {
return [];
}
}