1
0
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:
Awilum
2019-02-07 16:20:15 +03:00
parent 10eba2cad9
commit 4b06aa3e39

View File

@@ -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');
}
}