mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 02:56:37 +02:00
Minor fixes
This commit is contained in:
@@ -641,8 +641,7 @@ class PageObject extends FlexPageObject
|
||||
return $this->root ?: parent::exists();
|
||||
}
|
||||
|
||||
// TODO: Disabled because this slows down exception handling on missing Twig template files
|
||||
/* *
|
||||
/**
|
||||
* @return array
|
||||
* /
|
||||
public function __debugInfo(): array
|
||||
@@ -654,7 +653,6 @@ class PageObject extends FlexPageObject
|
||||
'_content:private' => $this->getRawContent()
|
||||
];
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param array $elements
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Grav\Common\Page\Interfaces;
|
||||
|
||||
use Grav\Common\Data\Blueprint;
|
||||
use Grav\Common\Media\Interfaces\MediaCollectionInterface;
|
||||
use Grav\Common\Page\Header;
|
||||
|
||||
/**
|
||||
* Methods currently implemented in Flex Page emulation layer.
|
||||
@@ -21,7 +22,7 @@ interface PageContentInterface
|
||||
* Gets and Sets the header based on the YAML configuration at the top of the .md file
|
||||
*
|
||||
* @param object|array|null $var a YAML object representing the configuration for the file
|
||||
* @return object the current YAML configuration
|
||||
* @return \stdClass|Header The current YAML configuration
|
||||
*/
|
||||
public function header($var = null);
|
||||
|
||||
|
||||
@@ -388,7 +388,7 @@ class Page implements PageInterface
|
||||
* Gets and Sets the header based on the YAML configuration at the top of the .md file
|
||||
*
|
||||
* @param object|array|null $var a YAML object representing the configuration for the file
|
||||
* @return object the current YAML configuration
|
||||
* @return \stdClass the current YAML configuration
|
||||
*/
|
||||
public function header($var = null)
|
||||
{
|
||||
|
||||
@@ -100,6 +100,7 @@ trait PageContentTrait
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @return Header
|
||||
*/
|
||||
public function header($var = null)
|
||||
{
|
||||
|
||||
@@ -286,8 +286,7 @@ trait FlexMediaTrait
|
||||
$this->clearMediaCache();
|
||||
}
|
||||
|
||||
// TODO: Disabled because this slows down exception handling on missing Twig template files
|
||||
/* *
|
||||
/**
|
||||
* @return array
|
||||
* /
|
||||
#[\ReturnTypeWillChange]
|
||||
@@ -297,7 +296,6 @@ trait FlexMediaTrait
|
||||
'uploads:private' => $this->getUpdatedMedia()
|
||||
];
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param array $files
|
||||
|
||||
@@ -38,6 +38,7 @@ parameters:
|
||||
- Grav\Common\GPM\Common\Package
|
||||
- Grav\Common\GPM\Local\Package
|
||||
- Grav\Common\GPM\Remote\Package
|
||||
- Grav\Common\Page\Header
|
||||
- Grav\Common\Session
|
||||
- Gantry\Component\Config\Config
|
||||
dynamicConstantNames:
|
||||
|
||||
Reference in New Issue
Block a user