public function isType($type)
    {
        $template = sprintf('Bake/%s.ctp', $type);

        return strpos($this->event->getData('0'), $template) !== false;
    }
public function isType($type)
    {
        $template = sprintf('Bake/%s.ctp', $type);

        return strpos($this->event->getData('0'), $template) !== false;
    }
public function isType ( $ type ) { $ template = sprintf ( 'Bake/%s.ctp' , $ type ) ; return strpos ( $ this -> event -> getData ( '0' ) , $ template ) !== false ; }
Check whether or not a bake call is a certain type.

@param string|array $type The type of file you want to check.
@return bool Whether or not the bake template is the type you are checking.
Check whether or not a bake call is a certain type .