Gajus\Dora\Input::deriveName PHP Method

deriveName() public static method

If selector name is ends with "_id", then Id is dropped off the name.
public static deriveName ( $name_path ) : string
return string
    public static function deriveName($name_path)
    {
        $path = explode('_', implode('_', array_filter($name_path)));
        if (count($path) > 1 && $path[count($path) - 1] == 'id') {
            array_pop($path);
        }
        return ucwords(implode(' ', $path));
    }