Backend\Core\Engine\Base\Config::isActionFilePresent PHP Method

isActionFilePresent() public method

public isActionFilePresent ( string $actionType ) : boolean
$actionType string
return boolean
    public function isActionFilePresent($actionType)
    {
        // Create the directory string
        $directory = BACKEND_MODULES_PATH . '/' . $this->module . '/' . ucfirst($actionType);
        // If the directory doesn't exist, surely the action can't exist.
        if (!is_dir($directory)) {
            return false;
        }
        // Return if the file exists
        return file_exists($directory . '/' . ucfirst($this->action) . '.php');
    }