hana+nils

Type Methods

Type Methods is a plugin helping to identify the type of an object, either page, user or file, in order to simplify logic in snippets that – for instance – handle content from both $page and $user objects.

$object->isPage();
$object->isUser();
$object->isFile();
$page->isType('article');
Version
1.0.0
License
MIT
Stars
6
Supports
K4 K3
Latest releases
More