public function onViewMode($viewMode, callable $method)
    {
        $viewMode = !is_array($viewMode) ? [$viewMode] : $viewMode;
        if (in_array($this->viewMode(), $viewMode)) {
            return $method();
        }
    }