mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 08:04:05 +02:00
Flextype Core: Entries - new method has() - added.
This commit is contained in:
@@ -281,4 +281,15 @@ class Entries
|
||||
return $_entry;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether entry exists.
|
||||
*
|
||||
* @param string $entry Entry to find
|
||||
* @return bool
|
||||
*/
|
||||
public static function has(string $entry) : bool
|
||||
{
|
||||
return Filesystem::has(PATH['entries'] . '/' . $entry . '/entry.html');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user