40 lines
910 B
PHP
40 lines
910 B
PHP
<?php
|
|
namespace App\Handlers\Contracts;
|
|
|
|
use App\Models\Content;
|
|
|
|
/**
|
|
* Interface ContentTitles
|
|
*
|
|
* Classes which implement this interface get the ability to rewrite default text on edit/create/overview of content
|
|
* page.
|
|
*
|
|
* @package App\Handlers\Contracts
|
|
*/
|
|
interface ContentTitles
|
|
{
|
|
/**
|
|
* Get translated title for pages overview of given type.
|
|
*
|
|
* This value is used for rendering list of all content pages of given type in administration.
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getOverviewTitle();
|
|
|
|
/**
|
|
* Title displayed above for for creating new content page
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getCreateNewTitle();
|
|
|
|
/**
|
|
* Title for form displayed for editin content page
|
|
*
|
|
* @param Content $content
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public static function getEditTitle(Content $content);
|
|
} |