Upgrade to 4.0.0
This commit is contained in:
@@ -16,8 +16,6 @@ class PageBlueprint extends Blueprint
|
||||
/**
|
||||
* Creates a new page blueprint object
|
||||
* with the given props
|
||||
*
|
||||
* @param array $props
|
||||
*/
|
||||
public function __construct(array $props)
|
||||
{
|
||||
@@ -28,6 +26,7 @@ class PageBlueprint extends Blueprint
|
||||
$this->props['options'] ?? true,
|
||||
// defaults
|
||||
[
|
||||
'access' => null,
|
||||
'changeSlug' => null,
|
||||
'changeStatus' => null,
|
||||
'changeTemplate' => null,
|
||||
@@ -35,8 +34,10 @@ class PageBlueprint extends Blueprint
|
||||
'create' => null,
|
||||
'delete' => null,
|
||||
'duplicate' => null,
|
||||
'read' => null,
|
||||
'list' => null,
|
||||
'move' => null,
|
||||
'preview' => null,
|
||||
'read' => null,
|
||||
'sort' => null,
|
||||
'update' => null,
|
||||
],
|
||||
@@ -58,8 +59,6 @@ class PageBlueprint extends Blueprint
|
||||
|
||||
/**
|
||||
* Returns the page numbering mode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function num(): string
|
||||
{
|
||||
@@ -70,7 +69,6 @@ class PageBlueprint extends Blueprint
|
||||
* Normalizes the ordering number
|
||||
*
|
||||
* @param mixed $num
|
||||
* @return string
|
||||
*/
|
||||
protected function normalizeNum($num): string
|
||||
{
|
||||
@@ -86,7 +84,6 @@ class PageBlueprint extends Blueprint
|
||||
* Normalizes the available status options for the page
|
||||
*
|
||||
* @param mixed $status
|
||||
* @return array
|
||||
*/
|
||||
protected function normalizeStatus($status): array
|
||||
{
|
||||
@@ -163,8 +160,6 @@ class PageBlueprint extends Blueprint
|
||||
/**
|
||||
* Returns the options object
|
||||
* that handles page options and permissions
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function options(): array
|
||||
{
|
||||
@@ -176,10 +171,8 @@ class PageBlueprint extends Blueprint
|
||||
* The preview setting controls the "Open"
|
||||
* button in the panel and redirects it to a
|
||||
* different URL if necessary.
|
||||
*
|
||||
* @return string|bool
|
||||
*/
|
||||
public function preview()
|
||||
public function preview(): string|bool
|
||||
{
|
||||
$preview = $this->props['options']['preview'] ?? true;
|
||||
|
||||
@@ -192,8 +185,6 @@ class PageBlueprint extends Blueprint
|
||||
|
||||
/**
|
||||
* Returns the status array
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function status(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user