1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

Flextype Core: Add ability to work with different types of content #212 #186

- FrontmatterParser implementation
This commit is contained in:
Awilum
2019-08-11 11:10:35 +03:00
parent 7c18cbeaf0
commit 3423d460df

View File

@@ -457,7 +457,16 @@ class Entries
return Filesystem::has($this->_file_location($id));
}
private function _one_of(string $id)
/**
* Helper method _one_of
*
* @param string $id Entry id
*
* @return bool True on success, false on failure.
*
* @access private
*/
private function _one_of(string $id) : bool
{
foreach (Parser::$drivers as $driver) {
$driver_file = PATH['entries'] . '/' . $id . '/entry' . '.' . $driver['ext'];