30 lines
793 B
PHP
30 lines
793 B
PHP
<?php
|
|
namespace App\CMS\Contracts\Modules;
|
|
|
|
use App\Http\Requests\Request;
|
|
use App\Models\Content\Content;
|
|
|
|
/**
|
|
* Interface TemplateHandler
|
|
*
|
|
* Inerface used for registering template into CMS core.
|
|
*
|
|
* @package App\CMS\Handlers\Contracts
|
|
*/
|
|
interface TemplateHandler extends BaseModuleHandler
|
|
{
|
|
/**
|
|
* Get list of registered templates and supported modules.
|
|
*
|
|
* Returned array is expected to be array of arrays with following items: module, namespace and templateName.
|
|
* Example:
|
|
* return [
|
|
* ['module' => 'Article', 'templateName' => 'article::template.name']
|
|
* ];
|
|
*
|
|
* When no "namespace" is specified, value strtolower(module) is used instaed.
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getPublicTemplatePaths();
|
|
} |